Skip to content

Commit c203452

Browse files
jshum2479Johnny
authored andcommitted
refactor
1 parent c871f8e commit c203452

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@
284284
DRIVER_PARAMS_NET_SSL_VERSION = 'oracle.net.ssl_version'
285285
DRIVER_PARAMS_NET_TNS_ADMIN = 'oracle.net.tns_admin'
286286
DRIVER_PARAMS_NET_FAN_ENABLED = 'oracle.jdbc.fanEnabled'
287+
ATP_RCU_PREFIX='rcu_prefix'
288+
ATP_RCU_SCHEMA_PASSWORD='rcu_schema_password'
289+
ATP_TNS_ENTRY='tns.entry'
290+
287291
ENABLED = 'Enabled'
288292
HARVESTED_ATTRIBUTE = 'HarvestedAttribute'
289293
HARVESTED_INSTANCE = 'HarvestedInstance'

core/src/main/python/wlsdeploy/tool/create/domain_creator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
from wlsdeploy.aliases.model_constants import DRIVER_PARAMS_NET_SSL_VERSION
2929
from wlsdeploy.aliases.model_constants import DRIVER_PARAMS_NET_TNS_ADMIN
3030
from wlsdeploy.aliases.model_constants import DRIVER_PARAMS_NET_FAN_ENABLED
31+
from wlsdeploy.aliases.model_constants import ATP_RCU_PREFIX
32+
from wlsdeploy.aliases.model_constants import ATP_RCU_SCHEMA_PASSWORD
33+
from wlsdeploy.aliases.model_constants import ATP_TNS_ENTRY
3134

3235
from wlsdeploy.aliases.model_constants import JDBC_DRIVER_PARAMS
3336
from wlsdeploy.aliases.model_constants import JDBC_DRIVER_PARAMS_PROPERTIES
@@ -688,18 +691,15 @@ def __configure_fmw_infra_database(self):
688691
try:
689692
rcu_properties_map = variables.load_variables(props_file)
690693

691-
print rcu_properties_map
692-
print '------'
693-
694694
# parse the tnsnames.ora file and retrieve the connection string
695695
tns_admin = rcu_properties_map[DRIVER_PARAMS_NET_TNS_ADMIN]
696696
tns_names = variables.load_variables( tns_admin + os.sep +
697697
'tnsnames.ora')
698698

699-
rcu_database = tns_names[rcu_properties_map['tns.entry']]
699+
rcu_database = tns_names[rcu_properties_map[ATP_TNS_ENTRY]]
700700

701-
rcu_prefix = rcu_properties_map['rcu_prefix']
702-
rcu_schema_pwd = rcu_properties_map['rcu_schema_password']
701+
rcu_prefix = rcu_properties_map[ATP_RCU_PREFIX]
702+
rcu_schema_pwd = rcu_properties_map[ATP_RCU_SCHEMA_PASSWORD]
703703

704704
keystore_pwd = rcu_properties_map[DRIVER_PARAMS_KEYSTOREPWD_PROPERTY]
705705
truststore_pwd = rcu_properties_map[DRIVER_PARAMS_TRUSTSTOREPWD_PROPERTY]

0 commit comments

Comments
 (0)