Skip to content

Commit 569f940

Browse files
CarolynRountreeddsharpe
authored andcommitted
Properties in names and manipulation of dict (#494)
1 parent b237ab0 commit 569f940

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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
@@ -69,7 +69,7 @@ def _create_named_mbeans(self, type_name, model_nodes, base_location, log_create
6969
create_path = self.alias_helper.get_wlst_create_path(location)
7070
list_path = self.alias_helper.get_wlst_list_path(location)
7171
existing_folder_names = self._get_existing_folders(list_path)
72-
for model_name in model_nodes:
72+
for model_name in model_nodes.keys():
7373
name = self.wlst_helper.get_quoted_name_for_wlst(model_name)
7474
if deployer_utils.is_delete_name(name):
7575
deployer_utils.delete_named_element(location, name, existing_folder_names, self.alias_helper)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def check_coherence_cluster_references(self, type_name, model_nodes):
4343
:raises: BundleAwareException of the specified type: if an error occurs
4444
"""
4545
if type_name in self._coherence_cluster_elements:
46-
for name in model_nodes:
46+
for name in model_nodes.keys():
4747
child_nodes = dictionary_utils.get_dictionary_element(model_nodes, name)
4848
resource_name = dictionary_utils.get_element(child_nodes, COHERENCE_CLUSTER_SYSTEM_RESOURCE)
4949
if resource_name is not None:
@@ -112,7 +112,7 @@ def create_placeholder_named_elements(self, location, model_type, model_nodes):
112112
existing_names = deployer_utils.get_existing_object_list(resource_location, self.alias_helper)
113113

114114
name_nodes = dictionary_utils.get_dictionary_element(model_nodes, model_type)
115-
for name in name_nodes:
115+
for name in name_nodes.keys():
116116
if deployer_utils.is_delete_name(name):
117117
# don't create placeholder for delete names
118118
continue

core/src/main/python/wlsdeploy/util/variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _process_node(nodes, variables, model_context):
167167

168168
if isinstance(value, dict):
169169
_process_node(value, variables, model_context)
170-
elif type(value) is str:
170+
elif type(value) in [str, unicode]:
171171
nodes[key] = _substitute(value, variables, model_context)
172172

173173

0 commit comments

Comments
 (0)