Lines 1091-1097
def domain_has_activated_license(nameserver, username, password):
|
Link Here
|
---|
|
1091 |
client = Client(fqdn_master, username, password) |
1091 |
client = Client(fqdn_master, username, password) |
1092 |
result = client.umc_command('udm/license/info').result |
1092 |
result = client.umc_command('udm/license/info').result |
1093 |
except (HTTPError, ConnectionError) as exc: |
1093 |
except (HTTPError, ConnectionError) as exc: |
1094 |
raise UMC_Error(str(exc)) |
1094 |
MODULE.error('Failed request: %s' % (exc,)) |
|
|
1095 |
raise UMC_Error(_('The domaincontroller master could not be contacted. Please check if the host is up and reachable, especially by proxy and firewall.')) |
1095 |
|
1096 |
|
1096 |
return bool(result.get('keyID')) |
1097 |
return bool(result.get('keyID')) |
1097 |
|
1098 |
|