MCPcopy Create free account
hub / github.com/apache/cloudstack / check

Method check

python/lib/cloudutils/syscfg.py:238–244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

236
237class sysConfigServer(sysConfig):
238 def check(self):
239 if os.geteuid() != 0:
240 raise CloudInternalException("Need to execute with root permission")
241 hostname = bash("hostname -f")
242 if not hostname.isSuccess():
243 raise CloudInternalException("Checking hostname ... [Failed]\nPlease edit /etc/hosts, add a Fully Qualified Domain Name as your hostname\n")
244 return True
245
246class sysConfigServerRedhat(sysConfigServer):
247 def __init__(self, glbEnv):

Callers

nothing calls this directly

Calls 3

bashClass · 0.85
isSuccessMethod · 0.65

Tested by

no test coverage detected