From d8d5eec40940893a2df615872d886a18b1c03c04 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 22 Apr 2008 13:17:31 +0000 Subject: [PATCH] Fix NIM group creation. Needed to set grouptype. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1141 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm b/xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm index 22e859134..8a2cb6b49 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/xcat2nim.pm @@ -511,6 +511,8 @@ sub x2n # create a NIM machine definition if ($::objtype{$objname} eq 'node') { + # need to set group type to either static or dynamic + $::objhash{$objname}{'grouptype'}='static'; if (mkclientdef($objname)) { # could not create client definition $error++; @@ -1155,6 +1157,9 @@ sub check_nim_group { my ($group, $servnode) = @_; my ($cmd, @output); + + chomp $::local_host; + chomp $servnode; if ( $::NIMGroupList{$servnode}) { @GroupList = @{$::NIMGroupList{$servnode}};