If the hostname is a non-fqdn, fail with CalledProcessError. Else return 0.
()
| 288 | |
| 289 | #check function |
| 290 | def 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 |
| 297 | def check_kvm(): |
nothing calls this directly
no test coverage detected