@@ -446,7 +446,7 @@ def isAdministrationPortEnabledForServer(server, model):
446
446
else :
447
447
administrationPortEnabled = isAdministrationPortEnabledForDomain (model )
448
448
449
- if isinstance (administrationPortEnabled , str ):
449
+ if isinstance (administrationPortEnabled , str ) or isinstance ( administrationPortEnabled , unicode ) :
450
450
return Boolean .valueOf (administrationPortEnabled )
451
451
else :
452
452
return administrationPortEnabled
@@ -462,7 +462,7 @@ def isAdministrationPortEnabledForDomain(model):
462
462
# Starting with 14.1.2.0, the domain's AdministrationPortEnabled default is derived from the domain's SecureMode
463
463
administrationPortEnabled = isSecureModeEnabledForDomain (model )
464
464
465
- if isinstance (administrationPortEnabled , str ):
465
+ if isinstance (administrationPortEnabled , str ) or isinstance ( administrationPortEnabled , unicode ) :
466
466
return Boolean .valueOf (administrationPortEnabled )
467
467
else :
468
468
return administrationPortEnabled
@@ -487,7 +487,7 @@ def isSecureModeEnabledForDomain(model):
487
487
is_production_mode_enabled = topology ['ProductionModeEnabled' ]
488
488
secureModeEnabled = is_production_mode_enabled and not env .wlsVersionEarlierThan ("14.1.2.0" )
489
489
490
- if isinstance (secureModeEnabled , str ):
490
+ if isinstance (secureModeEnabled , str ) or isinstance ( secureModeEnabled , unicode ) :
491
491
return Boolean .valueOf (secureModeEnabled )
492
492
else :
493
493
return secureModeEnabled
0 commit comments