Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a5438d6

Browse files
removing remnants of unused -prev-model-file argument (#1335)
1 parent 2440213 commit a5438d6

File tree

4 files changed

+0
-27
lines changed

4 files changed

+0
-27
lines changed

‎core/src/main/python/deploy.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
The entry point for the deployApps tool.
66
"""
7-
import exceptions
87
import os
98
import sys
109

@@ -50,7 +49,6 @@
5049
# Used by shell script to locate WLST
5150
CommandLineArgUtil.DOMAIN_TYPE_SWITCH,
5251
CommandLineArgUtil.ARCHIVE_FILE_SWITCH,
53-
CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH,
5452
CommandLineArgUtil.VARIABLE_FILE_SWITCH,
5553
CommandLineArgUtil.ADMIN_URL_SWITCH,
5654
CommandLineArgUtil.ADMIN_USER_SWITCH,

‎core/src/main/python/update.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
# Used by shell script to locate WLST
5353
CommandLineArgUtil.DOMAIN_TYPE_SWITCH,
5454
CommandLineArgUtil.ARCHIVE_FILE_SWITCH,
55-
CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH,
5655
CommandLineArgUtil.VARIABLE_FILE_SWITCH,
5756
CommandLineArgUtil.ADMIN_URL_SWITCH,
5857
CommandLineArgUtil.ADMIN_USER_SWITCH,

‎core/src/main/python/wlsdeploy/util/cla_utils.py‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ class CommandLineArgUtil(object):
6262
OPSS_WALLET_PASSPHRASE = '-opss_wallet_passphrase'
6363
OPSS_WALLET_FILE_PASSPHRASE = '-opss_wallet_passphrase_file'
6464
OPSS_WALLET_ENV_PASSPHRASE = '-opss_wallet_passphrase_env'
65-
PREVIOUS_MODEL_FILE_SWITCH = '-prev_model_file'
6665
VARIABLE_FILE_SWITCH = '-variable_file'
6766
RCU_DB_SWITCH = '-rcu_db'
6867
RCU_DB_USER_SWITCH = '-rcu_db_user'
@@ -262,10 +261,6 @@ def process_args(self, args, tool_type=TOOL_TYPE_DEFAULT, trailing_arg_count=0):
262261
value, idx = self._get_arg_value(args, idx)
263262
full_path = self._validate_model_file_arg(value)
264263
self._add_arg(key, full_path, True)
265-
elif self.is_previous_model_file_key(key):
266-
value, idx = self._get_arg_value(args, idx)
267-
full_path = self._validate_previous_model_file_arg(value)
268-
self._add_arg(key, full_path, True)
269264
elif self.is_validate_method_key(key):
270265
value, idx = self._get_arg_value(args, idx)
271266
context = self._validate_validate_method_arg(value)
@@ -762,12 +757,6 @@ def _validate_model_file_arg(self, value):
762757

763758
return ",".join(result_model_files)
764759

765-
def get_previous_model_file_key(self):
766-
return self.PREVIOUS_MODEL_FILE_SWITCH
767-
768-
def is_previous_model_file_key(self, key):
769-
return self.PREVIOUS_MODEL_FILE_SWITCH == key
770-
771760
def _validate_previous_model_file_arg(self, value):
772761
method_name = '_validate_previous_model_file_arg'
773762

‎core/src/main/python/wlsdeploy/util/model_context.py‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def __init__(self, program_name, arg_map):
6969
self._archive_file_name = None
7070
self._archive_file = None
7171
self._model_file = None
72-
self._previous_model_file = None
7372
self._variable_file_name = None
7473
self._run_rcu = False
7574
self._rcu_database = None
@@ -162,9 +161,6 @@ def __copy_from_args(self, arg_map):
162161
if CommandLineArgUtil.WAIT_FOR_EDIT_LOCK_SWITCH in arg_map:
163162
self._wait_for_edit_lock = arg_map[CommandLineArgUtil.WAIT_FOR_EDIT_LOCK_SWITCH]
164163

165-
if CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH in arg_map:
166-
self._previous_model_file = arg_map[CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH]
167-
168164
if CommandLineArgUtil.ATTRIBUTES_ONLY_SWITCH in arg_map:
169165
self._attributes_only = arg_map[CommandLineArgUtil.ATTRIBUTES_ONLY_SWITCH]
170166

@@ -293,8 +289,6 @@ def __copy__(self):
293289
arg_map[CommandLineArgUtil.ARCHIVE_FILE_SWITCH] = self._archive_file_name
294290
if self._model_file is not None:
295291
arg_map[CommandLineArgUtil.MODEL_FILE_SWITCH] = self._model_file
296-
if self._previous_model_file is not None:
297-
arg_map[CommandLineArgUtil.PREVIOUS_MODEL_FILE_SWITCH] = self._previous_model_file
298292
if self._attributes_only is not None:
299293
arg_map[CommandLineArgUtil.ATTRIBUTES_ONLY_SWITCH] = self._attributes_only
300294
if self._folders_only is not None:
@@ -568,13 +562,6 @@ def get_model_file(self):
568562
"""
569563
return self._model_file
570564

571-
def get_previous_model_file(self):
572-
"""
573-
Get the previous model file.
574-
:return: the previous model file
575-
"""
576-
return self._previous_model_file
577-
578565
def get_folders_only_control_option(self):
579566
"""
580567
Get the -folders_only command-line switch for model help tool.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /