49
49
import sys , traceback
50
50
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 ])
@@ -406,7 +407,8 @@ def isAdministrationPortEnabledForServer(server, model):
406
407
administrationPortEnabled = server ['AdministrationPortEnabled' ]
407
408
else :
408
409
administrationPortEnabled = isAdministrationPortEnabledForDomain (model )
409
- return administrationPortEnabled
410
+
411
+ return Boolean .valueOf (administrationPortEnabled )
410
412
411
413
412
414
def isAdministrationPortEnabledForDomain (model ):
@@ -418,7 +420,9 @@ def isAdministrationPortEnabledForDomain(model):
418
420
# AdministrationPortEnabled is not explicitly set so going with the default
419
421
# Starting with 14.1.2.0, the domain's AdministrationPortEnabled default is derived from the domain's SecureMode
420
422
administrationPortEnabled = isSecureModeEnabledForDomain (model )
421
- return administrationPortEnabled
423
+
424
+ return Boolean .valueOf (administrationPortEnabled )
425
+
422
426
423
427
424
428
# Derive the default value for SecureMode of a domain
@@ -438,7 +442,8 @@ def isSecureModeEnabledForDomain(model):
438
442
if 'ProductionModeEnabled' in topology :
439
443
is_production_mode_enabled = topology ['ProductionModeEnabled' ]
440
444
secureModeEnabled = is_production_mode_enabled and not env .wlsVersionEarlierThan ("14.1.2.0" )
441
- return secureModeEnabled
445
+
446
+ return Boolean .valueOf (secureModeEnabled )
442
447
443
448
444
449
def getSSLOrNone (server ):
0 commit comments