bugfix
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 20 Sep 2011 10:36:35 +0000 (12:36 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 20 Sep 2011 10:36:35 +0000 (12:36 +0200)
system/Substrate.py

index 721fe50..ad50129 100644 (file)
@@ -633,8 +633,10 @@ class Substrate:
 
     def fqdn (self, hostname):
         if hostname.find('.')<0: return "%s.%s"%(hostname,self.domain())
+        return hostname
     def short_hostname (self, hostname):
         if hostname.find('.')>=0: return hostname.split('.')[0]
+        return hostname
 
     # return True if actual sensing takes place
     def sense (self,force=False):