Changeset 62 for trunk/pxeconfig/hexls


Ignore:
Timestamp:
11/22/05 12:22:18 (17 years ago)
Author:
bas
Message:

hexls:

  • Use first element from gethostbyaddr

DEBIAN/control, Changelog:

  • Updated to new version 0.6.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/hexls

    r61 r62  
    3535import string
    3636import re
     37import socket
    3738
    3839def hexls(path):
     
    5051                        hostname = socket.gethostbyaddr(ipaddr)
    5152                        if hostname:
    52                                 print '%s => %s => %s' % (f, ipaddr, hostname)
     53                                print '%s => %s => %s' % (f, ipaddr, hostname[0])
    5354                        else:
    5455                                print '%s => %s' % (f, ipaddr)
Note: See TracChangeset for help on using the changeset viewer.