Changeset 4126

Show
Ignore:
Timestamp:
02/19/09 13:13:13 (4 years ago)
Author:
gpolo
Message:

* Fixed check for hostname existence;
* Corrected some typos in comments.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/NetworkInventory/umitInventory/InventoryTree.py

    r4124 r4126  
    167167 
    168168                if self.show_hosts_by == HOSTNAME: # default mode 
    169                     if addr[3]: # check for hosts existance 
     169                    if addr[3] and addr[3][0]: # check for hostnames existence 
    170170                        append_now = addr[3][0] # show first hostname 
    171171 
    172172                elif self.show_hosts_by == IPV6: 
    173                     if addr[1]: # check for ipv6 existance 
     173                    if addr[1]: # check for ipv6 existence 
    174174                        append_now = addr[1] 
    175175 
    176176                elif self.show_hosts_by == MAC: 
    177                     if addr[2]: # check for ipv6 existance 
     177                    if addr[2]: # check for mac existence 
    178178                        append_now =  addr[2] 
    179179 
     
    197197        Open Inventory for editing. 
    198198        """ 
    199         # checking for inventory existance in schemas file. 
     199        # checking for inventory existence in schemas file. 
    200200        schemas = ConfigParser() 
    201201        schemas.read(Path.sched_schemas)