no dump resource defined for osimage, but configdump is specified, report error.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11727 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -7853,6 +7853,34 @@ sub prenimnodeset | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     # no dump resource defined for osimage, but configdump is specified, report error. | ||||
|     my @badosi; | ||||
|     if (%attrs) | ||||
|     { | ||||
|         foreach my $attr (keys %attrs) | ||||
|         { | ||||
|             if ($attr =~ /^configdump$/) | ||||
|             { | ||||
|                 foreach my $i (@image_names) | ||||
|                 { | ||||
|                     if (!$imghash{$i}{dump}) | ||||
|                     { | ||||
|             			push @badosi, $i; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             if (scalar @badosi) | ||||
|             { | ||||
|                 my $badstring = join(',', @badosi); | ||||
|                 my $rsp; | ||||
|                 push @{$rsp->{data}}, "$Sname: No \'dump\' resource is defined for the osimage \'$badstring\', but the attribute \'$attr\' is specified. \n"; | ||||
|                 xCAT::MsgUtils->message("E", $rsp, $callback); | ||||
|                 return 1; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     # add the "xcataixscript" script to each image def for standalone systems | ||||
|     foreach my $i (@image_names) | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user