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

This commit is contained in:
frank 2011-12-01 10:40:38 -08:00
parent 008146a6b0
commit f4010f2215
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ for example:
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)