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:
parent
0fda20d691
commit
e431f7d9eb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user