diff --git a/pym/cl_fill.py b/pym/cl_fill.py index 5cf08f3..73b66d0 100755 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -25,7 +25,9 @@ class fillVars(object, cl_base.glob_attr): def get_os_net_domain(self): ''' Определим домен''' domain=self._runos("%s hostname -d 2>&1"%self.path_env) - if re.search("^hostname: ",domain): + if not domain: + return "local" + elif re.search("^hostname: ",domain): return "local" else: return domain