Changeset 309


Ignore:
Timestamp:
Jul 18, 2018, 10:26:58 PM (6 years ago)
Author:
g7moreau
Message:
  • variable error on print
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ddt/ddt

    r308 r309  
    729729         $computer_db->{$domainset}[$computer_index] = { $mac => $attribute };
    730730         ipamdb_save("$COMPUTER_YAML", $computer_db);
    731          print "Info: Update host $host->{'hostname'} MAC: $mac IP: $host->{'ip'} [OK]\n";
     731         print "Info: Update host $hostname MAC: $mac IP: $ip [OK]\n";
    732732         exit;
    733733         }
     
    748748         $computer_db->{$domainset}[$computer_index] = { $mac => $attribute };
    749749         ipamdb_save("$COMPUTER_YAML", $computer_db);
    750          print "Info: Update host $host->{'hostname'} MAC: $mac IP: $host->{'ip'} [OK]\n";
     750         print "Info: Update host $hostname MAC: $mac IP: $ip [OK]\n";
    751751         exit;
    752752         }
     
    787787      $attribute->{'ip'}          = $ip;
    788788      ipamdb_save("$COMPUTER_YAML", $computer_db);
    789       print "Info: Update host $host->{'hostname'} MAC: $mac IP: $host->{'ip'} [OK]\n";
     789      print "Info: Update host $hostname MAC: $mac_address IP: $ip [OK]\n";
    790790      exit;
    791791      }
     
    819819      $attribute->{'hostname'}    = $hostname;
    820820      ipamdb_save("$COMPUTER_YAML", $computer_db);
    821       print "Info: Update host $host->{'hostname'} MAC: $mac IP: $host->{'ip'} [OK]\n";
     821      print "Info: Update host $hostname MAC: $mac_address IP: $ip [OK]\n";
    822822      exit;
    823823      }
Note: See TracChangeset for help on using the changeset viewer.