fix for bug 2881601: should not assign nodes attributes to dynamic node group

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4495 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-11-06 06:50:51 +00:00
parent 590425a581
commit 9964dae9a9

View File

@ -1033,6 +1033,7 @@ sub defmk
$rsp->{data}->[0] = "Can not assign attributes to dynamic node group \'$obj\'.";
xCAT::MsgUtils->message("E", $rsp, $::callback);
$error = 1;
delete($::FINALATTRS{$obj});
next;
}
$::FINALATTRS{$obj}{grouptype} = 'dynamic';
@ -1579,6 +1580,7 @@ sub defch
$rsp->{data}->[0] = "Can not assign attributes to dynamic node group \'$obj\'.";
xCAT::MsgUtils->message("E", $rsp, $::callback);
$error = 1;
delete($::FINALATTRS{$obj});
next;
}
}
@ -1596,6 +1598,15 @@ sub defch
}
$grptype = $grphash{$obj}{grouptype};
if (($grptype eq "dynamic") && (scalar(keys %{$::FINALATTRS{$obj}}) > 1))
{
my $rsp;
$rsp->{data}->[0] = "Can not assign attributes to dynamic node group \'$obj\'.";
xCAT::MsgUtils->message("E", $rsp, $::callback);
$error = 1;
delete($::FINALATTRS{$obj});
next;
}
# for now all groups are static
#$grptype = 'static';
}