Skip to content

removing remnants of unused -prev_model_file argument #1335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions core/src/main/python/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

The entry point for the deployApps tool.
"""
import exceptions
import os
import sys

Expand Down Expand Up @@ -50,7 +49,6 @@
# Used by shell script to locate WLST
CommandLineArgUtil.DOMAIN_TYPE_SWITCH,
CommandLineArgUtil.ARCHIVE_FILE_SWITCH,
CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH,
CommandLineArgUtil.VARIABLE_FILE_SWITCH,
CommandLineArgUtil.ADMIN_URL_SWITCH,
CommandLineArgUtil.ADMIN_USER_SWITCH,
Expand Down
1 change: 0 additions & 1 deletion core/src/main/python/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
# Used by shell script to locate WLST
CommandLineArgUtil.DOMAIN_TYPE_SWITCH,
CommandLineArgUtil.ARCHIVE_FILE_SWITCH,
CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH,
CommandLineArgUtil.VARIABLE_FILE_SWITCH,
CommandLineArgUtil.ADMIN_URL_SWITCH,
CommandLineArgUtil.ADMIN_USER_SWITCH,
Expand Down
11 changes: 0 additions & 11 deletions core/src/main/python/wlsdeploy/util/cla_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class CommandLineArgUtil(object):
OPSS_WALLET_PASSPHRASE = '-opss_wallet_passphrase'
OPSS_WALLET_FILE_PASSPHRASE = '-opss_wallet_passphrase_file'
OPSS_WALLET_ENV_PASSPHRASE = '-opss_wallet_passphrase_env'
PREVIOUS_MODEL_FILE_SWITCH = '-prev_model_file'
VARIABLE_FILE_SWITCH = '-variable_file'
RCU_DB_SWITCH = '-rcu_db'
RCU_DB_USER_SWITCH = '-rcu_db_user'
Expand Down Expand Up @@ -262,10 +261,6 @@ def process_args(self, args, tool_type=TOOL_TYPE_DEFAULT, trailing_arg_count=0):
value, idx = self._get_arg_value(args, idx)
full_path = self._validate_model_file_arg(value)
self._add_arg(key, full_path, True)
elif self.is_previous_model_file_key(key):
value, idx = self._get_arg_value(args, idx)
full_path = self._validate_previous_model_file_arg(value)
self._add_arg(key, full_path, True)
elif self.is_validate_method_key(key):
value, idx = self._get_arg_value(args, idx)
context = self._validate_validate_method_arg(value)
Expand Down Expand Up @@ -762,12 +757,6 @@ def _validate_model_file_arg(self, value):

return ",".join(result_model_files)

def get_previous_model_file_key(self):
return self.PREVIOUS_MODEL_FILE_SWITCH

def is_previous_model_file_key(self, key):
return self.PREVIOUS_MODEL_FILE_SWITCH == key

def _validate_previous_model_file_arg(self, value):
method_name = '_validate_previous_model_file_arg'

Expand Down
13 changes: 0 additions & 13 deletions core/src/main/python/wlsdeploy/util/model_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def __init__(self, program_name, arg_map):
self._archive_file_name = None
self._archive_file = None
self._model_file = None
self._previous_model_file = None
self._variable_file_name = None
self._run_rcu = False
self._rcu_database = None
Expand Down Expand Up @@ -162,9 +161,6 @@ def __copy_from_args(self, arg_map):
if CommandLineArgUtil.WAIT_FOR_EDIT_LOCK_SWITCH in arg_map:
self._wait_for_edit_lock = arg_map[CommandLineArgUtil.WAIT_FOR_EDIT_LOCK_SWITCH]

if CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH in arg_map:
self._previous_model_file = arg_map[CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH]

if CommandLineArgUtil.ATTRIBUTES_ONLY_SWITCH in arg_map:
self._attributes_only = arg_map[CommandLineArgUtil.ATTRIBUTES_ONLY_SWITCH]

Expand Down Expand Up @@ -293,8 +289,6 @@ def __copy__(self):
arg_map[CommandLineArgUtil.ARCHIVE_FILE_SWITCH] = self._archive_file_name
if self._model_file is not None:
arg_map[CommandLineArgUtil.MODEL_FILE_SWITCH] = self._model_file
if self._previous_model_file is not None:
arg_map[CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH] = self._previous_model_file
if self._attributes_only is not None:
arg_map[CommandLineArgUtil.ATTRIBUTES_ONLY_SWITCH] = self._attributes_only
if self._folders_only is not None:
Expand Down Expand Up @@ -568,13 +562,6 @@ def get_model_file(self):
"""
return self._model_file

def get_previous_model_file(self):
"""
Get the previous model file.
:return: the previous model file
"""
return self._previous_model_file

def get_folders_only_control_option(self):
"""
Get the -folders_only command-line switch for model help tool.
Expand Down