Changeset 334 for trunk/ddt


Ignore:
Timestamp:
Aug 28, 2018, 3:10:53 PM (6 years ago)
Author:
g7moreau
Message:
  • Update some Info print
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ddt/ddt

    r333 r334  
    2121use strict;
    2222#use warnings;
    23 use version; our $VERSION = version->declare('0.10.1');
     23use version; our $VERSION = version->declare('0.10.2');
    2424
    2525use Getopt::Long qw(GetOptions);
     
    433433      $attribute->{'modify_time'} = time;
    434434      ipamdb_save("$COMPUTER_YAML", $computer_db);
    435       print "Info: Update attribute alias to $alias for host $hostname [OK]\n";
     435      print "Info: update attribute alias to $alias for host $hostname [OK]\n";
    436436      exit;
    437437      }
     
    464464      'alias'        =>  '',
    465465      }};
    466    print "Info: Add the host: $hostname, IP: $ip, MAC: $mac, domain set: $domainset [OK]\n";
     466   print "Info: add the host: $hostname, IP: $ip, MAC: $mac, domain set: $domainset [OK]\n";
    467467
    468468   ipamdb_save("$COMPUTER_YAML", $computer_db);
     
    527527      'comment'      => $comment,
    528528      }};
    529    print "Info: Add the computer in pool MAC: $mac, domain set: $domainset, Pool: $pool [OK]\n";
     529   print "Info: add the computer in pool MAC: $mac, domain set: $domainset, Pool: $pool [OK]\n";
    530530
    531531   ipamdb_save("$COMPUTER_YAML", $computer_db);
     
    731731
    732732         ipamdb_save("$COMPUTER_YAML", $computer_db);
    733          print "Info: Update host $hostname, domain set $domainset, MAC $mac, IP $attribute->{'ip'} [OK]\n";
     733         print "Info: update host $hostname, domain set $domainset, MAC $mac, IP $attribute->{'ip'} [OK]\n";
    734734         exit;
    735735         }
     
    752752
    753753         ipamdb_save("$COMPUTER_YAML", $computer_db);
    754          print "Info: Update host $hostname, domain set $domainset, MAC $mac, IP $attribute->{'ip'} [OK]\n";
     754         print "Info: update host $hostname, domain set $domainset, MAC $mac, IP $attribute->{'ip'} [OK]\n";
    755755         exit;
    756756         }
     
    791791      $attribute->{'ip'}          = $ip;
    792792      ipamdb_save("$COMPUTER_YAML", $computer_db);
    793       print "Info: Update host $hostname MAC: $mac_address IP: $ip [OK]\n";
     793      print "Info: update host $hostname MAC: $mac_address IP: $ip [OK]\n";
    794794      exit;
    795795      }
     
    823823      $attribute->{'hostname'}    = $hostname;
    824824      ipamdb_save("$COMPUTER_YAML", $computer_db);
    825       print "Info: Update host $hostname MAC: $mac_address IP: $ip [OK]\n";
     825      print "Info: update host $hostname MAC: $mac_address IP: $ip [OK]\n";
    826826      exit;
    827827      }
     
    11091109            $attribute->{'enabled'}     = 'no';
    11101110            ipamdb_save("$COMPUTER_YAML", $computer_db);
    1111             print "Info: Disabling IP $ip from domain set $domainset_current [OK]" .
     1111            print "Info: disabling IP $ip from domain set $domainset_current [OK]" .
    11121112               " ... Status: $attribute->{'enabled'}\n";
    11131113            exit;
     
    11421142         $attribute->{'enabled'}     = 'no';
    11431143         ipamdb_save("$COMPUTER_YAML", $computer_db);
    1144          print "Info: Disabling host $hostname from domain set $domainset [OK]" .
     1144         print "Info: disabling host $hostname from domain set $domainset [OK]" .
    11451145            " ... Status: $attribute->{'enabled'}\n";
    11461146         exit;
     
    13171317         $attribute->{'enabled'}     = 'yes';
    13181318         ipamdb_save("$COMPUTER_YAML", $computer_db);
    1319          print "Info: Enabling host $mac from pool $pool [OK]" .
     1319         print "Info: enabling host $mac from pool $pool [OK]" .
    13201320            " ... Status: $attribute->{'enabled'}\n";
    13211321         exit;
Note: See TracChangeset for help on using the changeset viewer.