pvl/hosts/host.py
changeset 503 a56456f901e8
parent 501 41b362e6074b
child 689 c258e3ff6d32
equal deleted inserted replaced
502:ac4e0f2df80c 503:a56456f901e8
   200             return pvl.dns.fqdn(self.name, self.domain)
   200             return pvl.dns.fqdn(self.name, self.domain)
   201         else:
   201         else:
   202             return pvl.dns.fqdn(self.name)
   202             return pvl.dns.fqdn(self.name)
   203     
   203     
   204     def __str__ (self):
   204     def __str__ (self):
   205         return "{self.name}@{self.domain}".format(self=self)
   205         return "{self.name}@{domain}".format(self=self,
       
   206                 domain      = self.domain or '',
       
   207         )