49
49
import sys , traceback
50
50
import time
51
51
from java .lang import System
52
+ from java .lang import Boolean
52
53
53
54
tmp_callerframerecord = inspect .stack ()[0 ] # 0 represents this line # 1 represents line at caller
54
55
tmp_info = inspect .getframeinfo (tmp_callerframerecord [0 ])
@@ -444,7 +445,8 @@ def isAdministrationPortEnabledForServer(server, model):
444
445
administrationPortEnabled = server ['AdministrationPortEnabled' ]
445
446
else :
446
447
administrationPortEnabled = isAdministrationPortEnabledForDomain (model )
447
- return administrationPortEnabled
448
+
449
+ return Boolean .valueOf (administrationPortEnabled )
448
450
449
451
450
452
def isAdministrationPortEnabledForDomain (model ):
@@ -456,7 +458,9 @@ def isAdministrationPortEnabledForDomain(model):
456
458
# AdministrationPortEnabled is not explicitly set so going with the default
457
459
# Starting with 14.1.2.0, the domain's AdministrationPortEnabled default is derived from the domain's SecureMode
458
460
administrationPortEnabled = isSecureModeEnabledForDomain (model )
459
- return administrationPortEnabled
461
+
462
+ return Boolean .valueOf (administrationPortEnabled )
463
+
460
464
461
465
462
466
# Derive the default value for SecureMode of a domain
@@ -476,7 +480,8 @@ def isSecureModeEnabledForDomain(model):
476
480
if 'ProductionModeEnabled' in topology :
477
481
is_production_mode_enabled = topology ['ProductionModeEnabled' ]
478
482
secureModeEnabled = is_production_mode_enabled and not env .wlsVersionEarlierThan ("14.1.2.0" )
479
- return secureModeEnabled
483
+
484
+ return Boolean .valueOf (secureModeEnabled )
480
485
481
486
482
487
def getSSLOrNone (server ):
0 commit comments