Changeset 334
- Timestamp:
- Aug 28, 2018, 3:10:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ddt/ddt
r333 r334 21 21 use strict; 22 22 #use warnings; 23 use version; our $VERSION = version->declare('0.10. 1');23 use version; our $VERSION = version->declare('0.10.2'); 24 24 25 25 use Getopt::Long qw(GetOptions); … … 433 433 $attribute->{'modify_time'} = time; 434 434 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"; 436 436 exit; 437 437 } … … 464 464 'alias' => '', 465 465 }}; 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"; 467 467 468 468 ipamdb_save("$COMPUTER_YAML", $computer_db); … … 527 527 'comment' => $comment, 528 528 }}; 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"; 530 530 531 531 ipamdb_save("$COMPUTER_YAML", $computer_db); … … 731 731 732 732 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"; 734 734 exit; 735 735 } … … 752 752 753 753 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"; 755 755 exit; 756 756 } … … 791 791 $attribute->{'ip'} = $ip; 792 792 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"; 794 794 exit; 795 795 } … … 823 823 $attribute->{'hostname'} = $hostname; 824 824 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"; 826 826 exit; 827 827 } … … 1109 1109 $attribute->{'enabled'} = 'no'; 1110 1110 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]" . 1112 1112 " ... Status: $attribute->{'enabled'}\n"; 1113 1113 exit; … … 1142 1142 $attribute->{'enabled'} = 'no'; 1143 1143 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]" . 1145 1145 " ... Status: $attribute->{'enabled'}\n"; 1146 1146 exit; … … 1317 1317 $attribute->{'enabled'} = 'yes'; 1318 1318 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]" . 1320 1320 " ... Status: $attribute->{'enabled'}\n"; 1321 1321 exit;
Note: See TracChangeset
for help on using the changeset viewer.