From e8f8bdcc92e01673e953de61d39da2895c84fd15 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 31 Jul 2008 21:07:18 +0000 Subject: [PATCH] -Fix problem where copycds without argument would fail git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1973 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/copycds.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/copycds.pm b/xCAT-server/lib/xcat/plugins/copycds.pm index b6222e476..f83e0b909 100644 --- a/xCAT-server/lib/xcat/plugins/copycds.pm +++ b/xCAT-server/lib/xcat/plugins/copycds.pm @@ -40,7 +40,9 @@ sub process_request { $::CDMOUNTPATH="/mnt/xcat"; my $existdir = getcwd; - @ARGV = @{$request->{arg}}; + if ($request->{arg}) { + @ARGV = @{$request->{arg}}; + } GetOptions( 'n|name|osver=s' => \$distname, 'a|arch=s' => \$arch