From 2855558c34e676fbfa9a187640a1a91810b9f442 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 21 Nov 2011 16:14:12 +0000 Subject: [PATCH] Have SLES plugin implement the same install server default as new RedHat behavior git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/sles.pm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index c580b1ac9..318d0ef70 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -757,23 +757,18 @@ sub mkinstall ); my $sent = $hmtab->getNodeAttribs($node, ['serialport', 'serialspeed', 'serialflow']); - unless ($ent and $ent->{nfsserver}) + my $netserver = '!myipfn!'; + if ($ent and $ent->{nfsserver}) { - $callback->( - { - error => ["No noderes.nfsserver for $node defined"], - errorcode => [1] - } - ); - next; + $netserver = $ent->{nfsserver}; } my $kcmdline = "autoyast=http://" - . $ent->{nfsserver} + . $netserver . "$installroot/autoinst/" . $node . " install=http://" - . $ent->{nfsserver} + . $netserver . "$pkgdir/1"; my $netdev = "";