mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 12:20:40 +00:00
add "Missing table name", fix bug2509834
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3038 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -77,6 +77,11 @@ if ($keypairs[0] !~ /([^\.\=]+)\.([^\.\=]+)\=(.+)/) {
|
||||
if ($::DELETE) {
|
||||
#delete option is specified
|
||||
my @tables_to_del=@ARGV;
|
||||
if(@tables_to_del == 0) {
|
||||
print "Missing table name.\n";
|
||||
usage;
|
||||
exit(1);
|
||||
}
|
||||
for (@tables_to_del) {
|
||||
$tables{$_} = xCAT::Table->new($_,-create => 1,-autocommit => 0);
|
||||
$tables{$_}->delEntries(\%keyhash);
|
||||
|
Reference in New Issue
Block a user