From eaf2ec8e279aea79043b4b7960b65cefeb2ec2a7 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Thu, 9 Apr 2009 08:40:07 +0000 Subject: [PATCH] -upgrade the priority of ..tmpl, nodeset install will find ..tmpl ahead of ..tmpl git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/sles.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index dfe92e43a..79cea3c3c 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -705,12 +705,12 @@ sub get_tmpl_file_name { if (-r "$base/$profile.$os.$arch.tmpl") { return "$base/$profile.$os.$arch.tmpl"; } - elsif (-r "$base/$profile.$arch.tmpl") { - return "$base/$profile.$arch.tmpl"; - } elsif (-r "$base/$profile.$os.tmpl") { return "$base/$profile.$os.tmpl"; } + elsif (-r "$base/$profile.$arch.tmpl") { + return "$base/$profile.$arch.tmpl"; + } elsif (-r "$base/$profile.tmpl") { return "$base/$profile.tmpl"; }