--- /opt/rocks/lib/python/rocks/reports/hosts.py.original 2004-07-17 10:05:34.000000000 -0400 +++ /opt/rocks/lib/python/rocks/reports/hosts.py 2004-07-17 10:18:08.000000000 -0400 @@ -237,8 +237,26 @@ hostname, = self.fetchone() domain, = self.fetchone() - print '127.0.0.1\t%s.%s\tlocalhost.localdomain\tlocalhost' \ - % (hostname, domain) + + # get public address + self.execute('select value from app_globals ' + 'where membership=0 and ' + 'service="Kickstart" and ' + '(component="PublicAddress") ' + 'order by component') + publicaddress, = self.fetchone() + + + #print '127.0.0.1\t%s.%s\tlocalhost.localdomain\tlocalhost' \ + # % (hostname, domain) + + # fix localhost + print '127.0.0.1\tlocalhost.localdomain\tlocalhost' + + # fix public address + print '%s\t%s.%s\t%s' \ + % (publicaddress, hostname, domain, hostname) + # Build the static addresses self.execute('select value from app_globals '