91
91
from wlsdeploy .tool .util .targeting_types import TargetingType
92
92
from wlsdeploy .tool .util .topology_helper import TopologyHelper
93
93
from wlsdeploy .util import dictionary_utils
94
- from wlsdeploy .util import model as model_helper
94
+ from wlsdeploy .util import model
95
+ from wlsdeploy .util import model_helper
95
96
from wlsdeploy .util import string_utils
96
97
97
98
@@ -108,9 +109,9 @@ def __init__(self, model_dictionary, model_context, aliases):
108
109
109
110
# domainInfo section is required to get the admin password, everything else
110
111
# is optional and will use the template defaults
111
- if model_helper .get_model_domain_info_key () not in model_dictionary :
112
+ if model .get_model_domain_info_key () not in model_dictionary :
112
113
ex = exception_helper .create_create_exception ('WLSDPLY-12200' , self .__program_name ,
113
- model_helper .get_model_domain_info_key (),
114
+ model .get_model_domain_info_key (),
114
115
self .model_context .get_model_file ())
115
116
self .logger .throwing (ex , class_name = self .__class_name , method_name = _method_name )
116
117
raise ex
@@ -1125,15 +1126,15 @@ def __set_app_dir(self):
1125
1126
self .logger .entering (class_name = self .__class_name , method_name = _method_name )
1126
1127
if APP_DIR in self ._domain_info :
1127
1128
app_dir = self ._domain_info [APP_DIR ]
1128
- self .logger .fine ('WLSDPLY-12225' , model_helper .get_model_domain_info_key (), APP_DIR , app_dir ,
1129
+ self .logger .fine ('WLSDPLY-12225' , model .get_model_domain_info_key (), APP_DIR , app_dir ,
1129
1130
class_name = self .__class_name , method_name = _method_name )
1130
1131
else :
1131
1132
app_parent = self .model_context .get_domain_parent_dir ()
1132
1133
if not app_parent :
1133
1134
app_parent = os .path .dirname (self .model_context .get_domain_home ())
1134
1135
1135
1136
app_dir = os .path .join (app_parent , 'applications' )
1136
- self .logger .fine ('WLSDPLY-12226' , model_helper .get_model_domain_info_key (), APP_DIR , app_dir ,
1137
+ self .logger .fine ('WLSDPLY-12226' , model .get_model_domain_info_key (), APP_DIR , app_dir ,
1137
1138
class_name = self .__class_name , method_name = _method_name )
1138
1139
1139
1140
self .wlst_helper .set_option_if_needed (SET_OPTION_APP_DIR , app_dir )
@@ -1197,7 +1198,7 @@ def __set_admin_password(self):
1197
1198
1198
1199
else :
1199
1200
ex = exception_helper .create_create_exception ('WLSDPLY-12228' , 'AdminPassword' ,
1200
- model_helper .get_model_domain_info_key ())
1201
+ model .get_model_domain_info_key ())
1201
1202
self .logger .throwing (ex , class_name = self .__class_name , method_name = _method_name )
1202
1203
raise ex
1203
1204
return
@@ -1298,6 +1299,8 @@ def __create_boot_dot_properties(self):
1298
1299
encrypted_username = encryptionService .encrypt (admin_username )
1299
1300
encrypted_password = encryptionService .encrypt (admin_password )
1300
1301
for server in servers :
1302
+ if model_helper .is_delete_name (server ):
1303
+ continue
1301
1304
properties = Properties ()
1302
1305
properties .put ("username" , encrypted_username )
1303
1306
properties .put ("password" , encrypted_password )
0 commit comments