From 4d22bb99702266731083b77e68418910eb1f136c Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 22 Nov 2012 02:57:22 +0000 Subject: [PATCH] make getpostscript.awk use the template method, instead of the original method git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/getpostscript.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/getpostscript.pm b/xCAT-server/lib/xcat/plugins/getpostscript.pm index 14632dd99..3854919ff 100644 --- a/xCAT-server/lib/xcat/plugins/getpostscript.pm +++ b/xCAT-server/lib/xcat/plugins/getpostscript.pm @@ -81,7 +81,9 @@ sub process_request if ($request->{scripttype}) { $state = $request->{scripttype}->[0];} require xCAT::Postage; - my @scriptcontents = xCAT::Postage::makescript($client,$state,$callback); + #my @scriptcontents = xCAT::Postage::makescript($client,$state,$callback); # the original method + my @scriptcontents = xCAT::Postage::makescript([$client],$state,$callback); # the new method, use the template + if (scalar(@scriptcontents)) { $rsp->{data} = \@scriptcontents; }