Skip to content

Commit bc5760a

Browse files
authored
Jira WDT-321 - Hide MT folders for WLS versions that don't support them (#684)
1 parent bb224f9 commit bc5760a

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

core/src/main/python/wlsdeploy/tool/modelhelp/model_sample_printer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ def _print_subfolder_keys_sample(self, model_location, subfolder_keys, control_o
164164

165165
for key in subfolder_keys:
166166
model_location.append_location(key)
167+
168+
# folder may not be valid for WLS version
169+
if self._alias_helper.get_wlst_mbean_type(model_location) is None:
170+
model_location.pop_location()
171+
continue
172+
167173
name_token = self._alias_helper.get_name_token(model_location)
168174
if name_token is not None:
169175
model_location.add_name_token(name_token, '%s-0' % key)

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/Partition.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"copyright": "Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.",
2+
"copyright": "Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.",
33
"license": "Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl",
44
"wlst_type": "Partition${:s}",
5-
"version": "[12.2.1,)",
5+
"version": "[12.2.1,14.1.1)",
66
"child_folders_type": "multiple",
77
"short_name": "Part",
88
"folders": {

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/PartitionWorkManager.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"copyright": "Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.",
2+
"copyright": "Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.",
33
"license": "Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl",
44
"wlst_type": "PartitionWorkManager${:s}",
5-
"version": "[12.2.1,)",
5+
"version": "[12.2.1,14.1.1)",
66
"child_folders_type": "multiple",
77
"short_name": "PartWM",
88
"folders": {},

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/ResourceGroup.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"copyright": "Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.",
2+
"copyright": "Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.",
33
"license": "Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl",
44
"wlst_type": "ResourceGroup${:s}",
5-
"version": "[12.2.1,)",
5+
"version": "[12.2.1,14.1.1)",
66
"child_folders_type": "multiple",
77
"short_name": "RG",
88
"folders": {},

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/ResourceGroupTemplate.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"copyright": "Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.",
2+
"copyright": "Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.",
33
"license": "Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl",
44
"wlst_type": "ResourceGroupTemplate${:s}",
5-
"version": "[12.2.1,)",
5+
"version": "[12.2.1,14.1.1)",
66
"child_folders_type": "multiple",
77
"short_name": "RGTemplate",
88
"folders": {},

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/VirtualTarget.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"copyright": "Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.",
2+
"copyright": "Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.",
33
"license": "Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl",
44
"wlst_type": "VirtualTarget${:s}",
5-
"version": "[12.2.1,)",
5+
"version": "[12.2.1,14.1.1)",
66
"child_folders_type": "multiple",
77
"short_name": "VTarg",
88
"folders": {

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,15 +906,15 @@ WLSDPLY-08206=Invalid version range {0}: {1}
906906
WLSDPLY-08207=Attribute {0} in folder {1} is not supported in WebLogic version {2} but is supported in WebLogic \
907907
version {3} and higher
908908
WLSDPLY-08208=Attribute {0} in folder {1} is not supported in WebLogic version {2} but is supported in WebLogic \
909-
versions between {3} and {4}
909+
versions between {3} and {4}
910910
WLSDPLY-08209=Attribute {0} in folder {1} is not supported in WebLogic version {2} but is supported in WebLogic \
911911
version {3}
912912
WLSDPLY-08210=Attribute {0} in folder {1} is not supported in WebLogic version {2} or any other WebLogic version \
913913
in WLST {3} mode
914914
WLSDPLY-08211=Folder {0} in folder {1} is not supported in WebLogic version {2} but is supported in WebLogic \
915915
version {3} and higher
916916
WLSDPLY-08212=Folder {0} in folder {1} is not supported in WebLogic version {2} but is supported in WebLogic \
917-
versions between {3} and {4}
917+
versions between {3} and {4}
918918
WLSDPLY-08213=Folder {0} in folder {1} is not supported in WebLogic version {2} but is supported in WebLogic version {3}
919919
WLSDPLY-08214=Folder {0} in folder {1} is not supported in WebLogic version {2} or any other WebLogic version \
920920
in WLST {3} mode

0 commit comments

Comments
 (0)