9191from wlsdeploy .tool .util .targeting_types import TargetingType
9292from wlsdeploy .tool .util .topology_helper import TopologyHelper
9393from 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
9596from wlsdeploy .util import string_utils
9697
9798
@@ -108,9 +109,9 @@ def __init__(self, model_dictionary, model_context, aliases):
108109
109110 # domainInfo section is required to get the admin password, everything else
110111 # 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 :
112113 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 (),
114115 self .model_context .get_model_file ())
115116 self .logger .throwing (ex , class_name = self .__class_name , method_name = _method_name )
116117 raise ex
@@ -1125,15 +1126,15 @@ def __set_app_dir(self):
11251126 self .logger .entering (class_name = self .__class_name , method_name = _method_name )
11261127 if APP_DIR in self ._domain_info :
11271128 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 ,
11291130 class_name = self .__class_name , method_name = _method_name )
11301131 else :
11311132 app_parent = self .model_context .get_domain_parent_dir ()
11321133 if not app_parent :
11331134 app_parent = os .path .dirname (self .model_context .get_domain_home ())
11341135
11351136 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 ,
11371138 class_name = self .__class_name , method_name = _method_name )
11381139
11391140 self .wlst_helper .set_option_if_needed (SET_OPTION_APP_DIR , app_dir )
@@ -1197,7 +1198,7 @@ def __set_admin_password(self):
11971198
11981199 else :
11991200 ex = exception_helper .create_create_exception ('WLSDPLY-12228' , 'AdminPassword' ,
1200- model_helper .get_model_domain_info_key ())
1201+ model .get_model_domain_info_key ())
12011202 self .logger .throwing (ex , class_name = self .__class_name , method_name = _method_name )
12021203 raise ex
12031204 return
@@ -1298,6 +1299,8 @@ def __create_boot_dot_properties(self):
12981299 encrypted_username = encryptionService .encrypt (admin_username )
12991300 encrypted_password = encryptionService .encrypt (admin_password )
13001301 for server in servers :
1302+ if model_helper .is_delete_name (server ):
1303+ continue
13011304 properties = Properties ()
13021305 properties .put ("username" , encrypted_username )
13031306 properties .put ("password" , encrypted_password )
0 commit comments