From 8c5083bcc65db544a018f65379c66986cc440f90 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 31 Jul 2008 18:19:11 +0000 Subject: [PATCH] -Fix problem where tabdump without arguments would not work git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/tabutils.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 76ef5e79d..00ed8ddac 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -402,7 +402,9 @@ sub tabdump }; # Process arguments - @ARGV = @{$args}; + if ($args) { + @ARGV = @{$args}; + } if (!GetOptions('h|?|help' => \$HELP, 'd' => \$DESC)) { $tabdump_usage->(1); return; } if ($HELP) { $tabdump_usage->(0); return; }