|
|
|
@ -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 ""
|
|
|
|
|