From 6bc2d8d51eff1dc9d926cd3a815f76adbd08ab8b Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Mon, 14 May 2018 22:30:42 -0400 Subject: [PATCH] Fix ERR message when running ondiscover in the chain table --- xCAT-server/lib/xcat/plugins/destiny.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index 69c233ebf..5381e98d7 100755 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -185,6 +185,11 @@ sub setdestiny { $state = $stents{$_}->[0]->{currstate}; $state =~ s/ .*//; + #skip the node if state=ondiscover + if ($state eq 'ondiscover') { + next; + } + #get the osimagename if nodetype.provmethod has osimage specified #use it for both sninit and genesis operating if (($state eq 'install') || ($state eq 'netboot') || ($state eq 'statelite')) {