diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index c0c5de591..ade4a0f6a 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -4829,6 +4829,8 @@ sub cpNetbootImages { push @filestocopy,$1; } elsif (/^modules=(.*)/) { foreach (split / --- /,$1) { + s/^\s*//; + s/\s.*//; push @filestocopy,$_; } }