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 10
10
from java .lang import IllegalArgumentException
11
11
from java .lang import IllegalStateException
12
12
from java .lang import String
13
+ from java .lang .System import System
13
14
from oracle .weblogic .deploy .create import CreateException
14
15
from oracle .weblogic .deploy .deploy import DeployException
15
16
from oracle .weblogic .deploy .util import CLAException
@@ -341,7 +342,8 @@ def validateRCUArgsAndModel(model_context, model):
341
342
has_atpdbinfo = atp_helper .has_atpdbinfo (rcu_db_info )
342
343
343
344
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
+
345
347
# 1. If it does not have the oracle.net.tns_admin specified, then extract to domain/atpwallet
346
348
# 2. If it is plain old regular oracle db, do nothing
347
349
# 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):
184
184
185
185
186
186
def 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' ]
189
193
extract_path = domain_path + os .sep + 'atpwallet'
190
194
extract_dir = File (extract_path )
191
195
extract_dir .mkdirs ()
You can’t perform that action at this time.
0 commit comments