MCPcopy Create free account
hub / github.com/apache/cloudstack / check_hostname

Function check_hostname

python/lib/cloud_utils.py:290–294  ·  view source on GitHub ↗

If the hostname is a non-fqdn, fail with CalledProcessError. Else return 0.

()

Source from the content-addressed store, hash-verified

288
289#check function
290def check_hostname():
291 """If the hostname is a non-fqdn, fail with CalledProcessError. Else return 0."""
292 try: check_call(["hostname",'--fqdn'])
293 except CalledProcessError:
294 raise CheckFailed("This machine does not have an FQDN (fully-qualified domain name) for a hostname")
295
296#check function
297def check_kvm():

Callers

nothing calls this directly

Calls 2

CheckFailedClass · 0.85
check_callFunction · 0.70

Tested by

no test coverage detected