Skip to content

Commit 83795d1

Browse files
committed
set fanEnabled=false in python instead of requiring setting env before running the script and optimize import
1 parent b9a4163 commit 83795d1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

core/src/main/python/create.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,19 @@
66
"""
77
import javaos as os
88
import sys
9-
10-
119
from java.io import IOException
1210
from java.lang import IllegalArgumentException
1311
from java.lang import IllegalStateException
1412
from java.lang import String
15-
from java.io import File
16-
1713
from oracle.weblogic.deploy.create import CreateException
1814
from oracle.weblogic.deploy.deploy import DeployException
1915
from oracle.weblogic.deploy.util import CLAException
2016
from oracle.weblogic.deploy.util import FileUtils
2117
from oracle.weblogic.deploy.util import TranslateException
2218
from oracle.weblogic.deploy.util import VariableException
23-
from oracle.weblogic.deploy.util import WebLogicDeployToolingVersion
2419
from oracle.weblogic.deploy.util import WLSDeployArchive
2520
from oracle.weblogic.deploy.util import WLSDeployArchiveIOException
21+
from oracle.weblogic.deploy.util import WebLogicDeployToolingVersion
2622
from oracle.weblogic.deploy.validate import ValidateException
2723

2824
sys.path.append(os.path.dirname(os.path.realpath(sys.argv[0])))
@@ -345,6 +341,7 @@ def validateRCUArgsAndModel(model_context, model):
345341
has_atpdbinfo = atp_helper.has_atpdbinfo(rcu_db_info)
346342

347343
if model_context.get_archive_file_name() and not has_regular_db:
344+
os.environ['oracle.jdbc.fanEnabled'] = 'false'
348345
# 1. If it does not have the oracle.net.tns_admin specified, then extract to domain/atpwallet
349346
# 2. If it is plain old regular oracle db, do nothing
350347
# 3. If it deos not have tns_admin in the model, then the wallet must be in the archive

0 commit comments

Comments
 (0)