29
29
from wlsdeploy .aliases .model_constants import RESOURCE_GROUP_TEMPLATE
30
30
from wlsdeploy .aliases .model_constants import SECURITY_DD_MODEL
31
31
from wlsdeploy .aliases .model_constants import SOURCE_PATH
32
+ from wlsdeploy .aliases .model_constants import STAGE_MODE
32
33
from wlsdeploy .aliases .model_constants import TARGET
33
34
from wlsdeploy .aliases .model_constants import TARGETS
34
35
from wlsdeploy .aliases .wlst_modes import WlstModes
@@ -292,7 +293,6 @@ def __online_deploy_apps_and_libs(self, base_location):
292
293
self .logger .exiting (class_name = self ._class_name , method_name = _method_name )
293
294
return
294
295
295
-
296
296
###########################################################################
297
297
# Private utility methods #
298
298
###########################################################################
@@ -851,8 +851,9 @@ def __deploy_model_applications(self, model_apps, app_location, deployed_applist
851
851
self .__get_mt_names_from_location (location )
852
852
853
853
new_app_name = self .__deploy_app_online (app_name , src_path , targets , plan = plan_file ,
854
- partition = partition_name , resource_group = resource_group_name ,
855
- resource_group_template = resource_group_template_name , options = options )
854
+ partition = partition_name , resource_group = resource_group_name ,
855
+ resource_group_template = resource_group_template_name ,
856
+ options = options )
856
857
location .remove_name_token (token_name )
857
858
deployed_applist .append (new_app_name )
858
859
return
@@ -1135,6 +1136,7 @@ def __start_all_apps(self, deployed_app_list, base_location):
1135
1136
self .__start_app (app )
1136
1137
return
1137
1138
1139
+
1138
1140
def _get_deploy_options (model_apps , app_name , library_module ):
1139
1141
"""
1140
1142
Get the deploy command options.
@@ -1145,7 +1147,7 @@ def _get_deploy_options(model_apps, app_name, library_module):
1145
1147
"""
1146
1148
deploy_options = OrderedDict ()
1147
1149
# not sure about altDD, altWlsDD
1148
- for option in [DEPLOYMENT_ORDER , SECURITY_DD_MODEL , PLAN_STAGE_MODE ]:
1150
+ for option in [DEPLOYMENT_ORDER , SECURITY_DD_MODEL , PLAN_STAGE_MODE , STAGE_MODE ]:
1149
1151
app = dictionary_utils .get_dictionary_element (model_apps , app_name )
1150
1152
value = dictionary_utils .get_element (app , option )
1151
1153
@@ -1156,6 +1158,8 @@ def _get_deploy_options(model_apps, app_name, library_module):
1156
1158
option_name = 'securityModel'
1157
1159
elif option == PLAN_STAGE_MODE :
1158
1160
option_name = 'planStageMode'
1161
+ elif option == STAGE_MODE :
1162
+ option_name = 'stageMode'
1159
1163
1160
1164
if value is not None :
1161
1165
deploy_options [option_name ] = str (value )
@@ -1167,6 +1171,7 @@ def _get_deploy_options(model_apps, app_name, library_module):
1167
1171
deploy_options = None
1168
1172
return deploy_options
1169
1173
1174
+
1170
1175
def _find_deployorder_list (apps_dict , ordered_list , order ):
1171
1176
"""
1172
1177
Get the deployment order for the apps
0 commit comments