File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1010from java .lang import IllegalArgumentException
1111from java .lang import IllegalStateException
1212from java .lang import String
13+ from java .lang .System import System
1314from oracle .weblogic .deploy .create import CreateException
1415from oracle .weblogic .deploy .deploy import DeployException
1516from oracle .weblogic .deploy .util import CLAException
@@ -341,7 +342,8 @@ def validateRCUArgsAndModel(model_context, model):
341342 has_atpdbinfo = atp_helper .has_atpdbinfo (rcu_db_info )
342343
343344 if model_context .get_archive_file_name () and not has_regular_db :
344- os .environ ['oracle.jdbc.fanEnabled' ] = 'false'
345+ System .setProperty ('oracle.jdbc.fanEnabled' , 'false' )
346+
345347 # 1. If it does not have the oracle.net.tns_admin specified, then extract to domain/atpwallet
346348 # 2. If it is plain old regular oracle db, do nothing
347349 # 3. If it deos not have tns_admin in the model, then the wallet must be in the archive
Original file line number Diff line number Diff line change @@ -184,8 +184,12 @@ def is_regular_db(rcu_db_info):
184184
185185
186186def extract_walletzip (model , model_context , archive_file , atp_path ):
187- domain_path = model_context .get_domain_parent_dir () + os .sep + model [model_constants .TOPOLOGY ][
188- 'Name' ]
187+ domain_parent = model_context .get_domain_parent_dir ()
188+ if domain_parent is None :
189+ domain_path = model_context .get_domain_home ()
190+ else :
191+ domain_path = domain_parent + os .sep + model [model_constants .TOPOLOGY ][
192+ 'Name' ]
189193 extract_path = domain_path + os .sep + 'atpwallet'
190194 extract_dir = File (extract_path )
191195 extract_dir .mkdirs ()
You can’t perform that action at this time.
0 commit comments