File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
operator/src/main/resources/scripts Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ def getDynamicServersOrNone(self,cluster):
284
284
ret = cmo
285
285
except :
286
286
trace ("Ignoring cd() exception for cluster '" + cluster .getName () + "' in getDynamicServerOrNone() and returning None." )
287
- return ret ;
287
+ return ret
288
288
289
289
def addGeneratedFile (self , filePath ):
290
290
self .generatedFiles .append (filePath )
@@ -2046,10 +2046,13 @@ def isSecureModeEnabledForDomain(domain):
2046
2046
cd ('/SecurityConfiguration/' + domain .getName ())
2047
2047
childs = ls (returnType = 'c' , returnMap = 'true' )
2048
2048
if 'SecureMode' in childs :
2049
- cd ('SecureMode/NO_NAME_0' )
2050
- attributes = ls (returnType = 'a' , returnMap = 'true' )
2051
- if attributes ['SecureModeEnabled' ]:
2052
- secureModeEnabled = True
2049
+ cd ('SecureMode' )
2050
+ child_objs = ls (returnMap = 'true' , returnType = 'c' )
2051
+ if not child_objs .isEmpty ():
2052
+ cd (child_objs [0 ])
2053
+ attributes = ls (returnType = 'a' , returnMap = 'true' )
2054
+ if attributes ['SecureModeEnabled' ]:
2055
+ secureModeEnabled = True
2053
2056
else :
2054
2057
secureModeEnabled = domain .isProductionModeEnabled () and not LegalHelper .versionEarlierThan (domain .getDomainVersion (), "14.1.2.0" )
2055
2058
You can’t perform that action at this time.
0 commit comments