Skip to content

Commit c9eaca8

Browse files
Merge pull request #1046 from oracle/Alias-test-broken
Do not look for path tokens if path is None
2 parents a55a805 + 3ca37ea commit c9eaca8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alias-test/src/test/python/aliastest/verify/verifier_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2020, 2021, Oracle Corporation and/or its affiliates.
2+
Copyright (c) 2020, 2022, Oracle Corporation and/or its affiliates.
33
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
"""
55

core/src/main/python/wlsdeploy/aliases/aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def get_wlst_attribute_name_and_value(self, location, model_attribute_name, mode
511511
model_val = alias_utils.convert_to_type(LIST, model_attribute_value,
512512
delimiter=MODEL_LIST_DELIMITER)
513513

514-
if uses_path_tokens:
514+
if uses_path_tokens and model_val is not None:
515515
for index, item in enumerate(model_val):
516516
item_value = self._model_context.replace_token_string(str(item))
517517
model_val[index] = item_value

0 commit comments

Comments
 (0)