Skip to content

Commit 2d0ada8

Browse files
authored
Create server template JTA migratable target with ${serverName} macro (#536)
* Use revised WLST helper for extract resource tool * JIRA-OWLS-79762 Create server template JTA migratable target with ${serverName} macro
1 parent 310a2aa commit 2d0ada8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/src/main/python/extract_resource.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2020, Oracle Corporation and/or its affiliates. All rights reserved.
2+
Copyright (c) 2020, 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
The entry point for the extractDomainResource tool.
@@ -20,22 +20,22 @@
2020
from wlsdeploy.logging.platform_logger import PlatformLogger
2121
from wlsdeploy.tool.extract.domain_resource_extractor import DomainResourceExtractor
2222
from wlsdeploy.tool.util import model_context_helper
23+
from wlsdeploy.tool.util import wlst_helper
2324
from wlsdeploy.tool.util.wlst_helper import WlstHelper
2425
from wlsdeploy.util import cla_helper
2526
from wlsdeploy.util import tool_exit
26-
from wlsdeploy.util import wlst_extended
2727
from wlsdeploy.util.cla_utils import CommandLineArgUtil
2828
from wlsdeploy.util.cla_utils import TOOL_TYPE_EXTRACT
2929
from wlsdeploy.util.model import Model
3030
from wlsdeploy.util.weblogic_helper import WebLogicHelper
3131

32-
wlst_extended.wlst_functions = globals()
32+
wlst_helper.wlst_functions = globals()
3333

3434
_program_name = 'extractDomainResource'
3535
_class_name = 'extract_resource'
3636
__logger = PlatformLogger('wlsdeploy.extract')
3737
__wls_helper = WebLogicHelper(__logger)
38-
__wlst_helper = WlstHelper(__logger, ExceptionType.DEPLOY)
38+
__wlst_helper = WlstHelper(ExceptionType.DEPLOY)
3939
__wlst_mode = WlstModes.OFFLINE
4040

4141
__required_arguments = [

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.",
33
"license": "Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl",
44
"wlst_type": "ServerTemplate${:s}",
55
"version": "[12.1.2,)",
@@ -202,7 +202,7 @@
202202
"wlst_type": "JTAMigratableTarget",
203203
"version": "[12.1.2,)",
204204
"child_folders_type": "single_unpredictable",
205-
"default_name_value": "${NO_NAME_0:%SERVERTEMPLATE%}",
205+
"default_name_value": "${serverName}",
206206
"folders": {},
207207
"attributes": {
208208
"AdditionalMigrationAttempts": [ {"version": "[12.1.2,)", "wlst_mode": "both", "wlst_name": "AdditionalMigrationAttempts", "wlst_path": "WP001", "value": {"default": 2 }, "wlst_type": "integer" } ],

0 commit comments

Comments
 (0)