better error message when checking hostname failed in cloud-setup-database

This commit is contained in:
frank 2011-12-01 10:45:46 -08:00
parent 5cd1cb17d3
commit 672e71ce34
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ for full help
try:
output= runCmd(['hostname', '--fqdn'])
except Exception, e:
err = "The host name of this computer does not resolve to an IP address.\nPlease use your operating system's network setup tools to fix this (%s).\n"%e.__str__()
err = "The host name of this computer does not resolve to an IP address.\nPlease use your operating system's network setup tools to fix this ('hostname --fqdn' %s).\n"%e.__str__()
self.errorAndExit(err)
self.info(None, True)