Skip to content

Commit b9691c6

Browse files
committed
refactor
1 parent 7b4e7a2 commit b9691c6

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
@@ -694,18 +697,15 @@ def __configure_fmw_infra_database(self):
694697
try:
695698
rcu_properties_map = variables.load_variables(props_file)
696699

697-
print rcu_properties_map
698-
print '------'
699-
700700
# parse the tnsnames.ora file and retrieve the connection string
701701
tns_admin = rcu_properties_map[DRIVER_PARAMS_NET_TNS_ADMIN]
702702
tns_names = variables.load_variables( tns_admin + os.sep +
703703
'tnsnames.ora')
704704

705-
rcu_database = tns_names[rcu_properties_map['tns.entry']]
705+
rcu_database = tns_names[rcu_properties_map[ATP_TNS_ENTRY]]
706706

707-
rcu_prefix = rcu_properties_map['rcu_prefix']
708-
rcu_schema_pwd = rcu_properties_map['rcu_schema_password']
707+
rcu_prefix = rcu_properties_map[ATP_RCU_PREFIX]
708+
rcu_schema_pwd = rcu_properties_map[ATP_RCU_SCHEMA_PASSWORD]
709709

710710
keystore_pwd = rcu_properties_map[DRIVER_PARAMS_KEYSTOREPWD_PROPERTY]
711711
truststore_pwd = rcu_properties_map[DRIVER_PARAMS_TRUSTSTOREPWD_PROPERTY]

0 commit comments

Comments
 (0)