(self)
| 236 | |
| 237 | class 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 | |
| 246 | class sysConfigServerRedhat(sysConfigServer): |
| 247 | def __init__(self, glbEnv): |
nothing calls this directly
no test coverage detected