Skip to content

Commit 93b5a9e

Browse files
fix for unencrypted property in config.xml (#1113)
1 parent 3b7484d commit 93b5a9e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/src/main/python/wlsdeploy/tool/create/creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def _extract_archive_files(self, location, model_name, model_value):
344344

345345
# model value should be a list, comma-delimited string, or string
346346
model_paths = model_value
347-
if isinstance(model_value, str):
347+
if isinstance(model_value, basestring):
348348
model_paths = model_value.split(',')
349349

350350
for model_path in model_paths:

core/src/main/python/wlsdeploy/tool/create/custom_folder_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def update_security_folder(self, location, model_type, model_subtype, model_name
113113
# encrypt the value with domain encryption.
114114

115115
requires_encrypted = property_descriptor.getValue('encrypted')
116-
if requires_encrypted and not self.is_encrypted(model_value) and isinstance(model_value, str):
116+
if requires_encrypted and not self.is_encrypted(model_value) and isinstance(model_value, basestring):
117117
model_value = self.weblogic_helper.encrypt(model_value, self.model_context.get_domain_home())
118118

119119
property_type = parameter_types[0]

core/src/main/python/wlsdeploy/tool/util/credential_injector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def check_and_tokenize(self, model_dict, attribute, location):
115115
elif folder_path.endswith(MAIL_SESSION) and (attribute == PROPERTIES):
116116
# users and passwords are property assignments
117117
value = model_dict[attribute]
118-
is_string = isinstance(value, str)
118+
is_string = isinstance(value, basestring)
119119

120120
# for discover, value is a string at this point
121121
split_value = ';'

0 commit comments

Comments
 (0)