Skip to content

Commit fbb026b

Browse files
committed
move import to the top
1 parent a40f25a commit fbb026b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/python/create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from java.lang import IllegalArgumentException
1111
from java.lang import IllegalStateException
1212
from java.lang import String
13+
from java.lang.System import System
1314
from oracle.weblogic.deploy.create import CreateException
1415
from oracle.weblogic.deploy.deploy import DeployException
1516
from oracle.weblogic.deploy.util import CLAException
@@ -341,8 +342,7 @@ 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-
import java.lang.System as javasys
345-
javasys.setProperty('oracle.jdbc.fanEnabled', 'false')
345+
System.setProperty('oracle.jdbc.fanEnabled', 'false')
346346

347347
# 1. If it does not have the oracle.net.tns_admin specified, then extract to domain/atpwallet
348348
# 2. If it is plain old regular oracle db, do nothing

0 commit comments

Comments
 (0)