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')) {