From 366020edfabc0392741e1847a825ad7df192bcb6 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 26 Aug 2010 06:04:23 +0000 Subject: [PATCH] fix for bug 3052910: add more info when can not get template file git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7249 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 1 + xCAT-server/lib/xcat/plugins/sles.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 8c98efe53..3a32c8e60 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -751,6 +751,7 @@ sub mkinstall error => [ "No $platform kickstart template exists for " . $profile + . " in directory $installroot/custom/install/$platform or $::XCATROOT/share/xcat/install/$platform" ], errorcode => [1] } diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index d29bf70f0..51869c504 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -447,6 +447,7 @@ sub mkinstall my $pkglistfile; my $osinst; my $ent = $ntents->{$node}->[0]; + my $plat = ""; if ($ent and $ent->{provmethod} and ($ent->{provmethod} ne 'install') and ($ent->{provmethod} ne 'netboot') and ($ent->{provmethod} ne 'statelite')) { my $imagename=$ent->{provmethod}; @@ -499,7 +500,6 @@ sub mkinstall $os = $ent->{os}; $arch = $ent->{arch}; $profile = $ent->{profile}; - my $plat = ""; if($os =~/sles.*/){ $plat = "sles"; }elsif($os =~/suse.*/){ @@ -536,7 +536,7 @@ sub mkinstall $callback->( { error => - ["No AutoYaST template exists for " . $ent->{profile}], + ["No AutoYaST template exists for " . $ent->{profile} . " in directory $installroot/custom/install/$plat or $::XCATROOT/share/xcat/install/$plat"], errorcode => [1] } );