Exemplo n.º 1
0
 def validate_hostname(self):
     if getdomainname() == "":
         # Should we return a message?
         raise AssertionError("Host does not have a domain name.")
     DirSrvTools.searchHostsFile(getfqdn())
Exemplo n.º 2
0
 def validate_hostname(self):
     if getdomainname() == "":
         # Should we return a message?
         raise AssertionError("Host does not have a domain name.")
     DirSrvTools.searchHostsFile(getfqdn())