From 60a6b2d3314eec8ededc8856f993a0fb4e4a8ea1 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 23 Jun 2012 13:57:52 +0000 Subject: [PATCH] Fix problem where if template passed in has parameters on a module, xCAT would consider that part of the filename git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13155 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 2 ++ 1 file changed, 2 insertions(+) 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,$_; } }