Skip to content

Commit 03b13ae

Browse files
authored
Issue #841 - Check for isSet method present (#843)
1 parent 495bb27 commit 03b13ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2019, 2020, Oracle Corporation and/or its affiliates.
2+
Copyright (c) 2019, 2021, 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

@@ -112,6 +112,9 @@ def is_set(self, attribute):
112112
try:
113113
mbean_path = self.get_pwd()
114114
mbean = self.get_mbean_for_wlst_path(mbean_path)
115+
if 'isSet' not in dir(mbean):
116+
return True
117+
115118
result = mbean.isSet(attribute)
116119
except (self.__load_global('WLSTException'), offlineWLSTException), e:
117120
pwe = exception_helper.create_exception(self.__exception_type, 'WLSDPLY-00125', attribute,

0 commit comments

Comments
 (0)