Set domain action only non chroot

master3.3
parent f1bb032405
commit aa8ce9fad7

@ -43,16 +43,18 @@ class VariableAcClientDomain(ReadonlyVariable):
"""
def get(self):
ret = ""
if self.Get('cl_chroot_status') == "on":
return ""
action = self.Get("cl_action")
remoteHost = self.Get("cl_remote_host")
remoteAuth = self.Get("os_remote_auth")
if action == "domain":
ret = "up"
return "up"
elif action in ("undomain", "uninstall"):
ret = "down"
return "down"
elif action in ("install", "merge"):
if remoteHost and remoteAuth:
ret = "up"
return "up"
else:
ret = "down"
return ret
return "down"
return ""

Loading…
Cancel
Save