Skip to content

Commit 3275bd2

Browse files
committed
Merge branch 'remote-version' into 'main'
Fixing online server version to work with pre-12.2.1 versions See merge request weblogic-cloud/weblogic-deploy-tooling!1681
2 parents afedb2a + 8a7a777 commit 3275bd2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ def get_online_server_version_data(self, username, password, url, timeout):
6060
lsa_dict = self.lsa()
6161
if 'WeblogicVersion' in lsa_dict:
6262
version_string = lsa_dict['WeblogicVersion']
63+
#
64+
# Prior to 12.2.1, the lsa_dict does not include the WeblogicVersion attribute
65+
# even though it exists so use get() instead.
66+
#
67+
if version_string is None:
68+
version_string = self.get('WeblogicVersion')
69+
6370
if 'PatchList' in lsa_dict:
6471
patch_list_array = self.get('PatchList')
6572
if 'OracleHome' in lsa_dict:

0 commit comments

Comments
 (0)