Fix a problem with os minor version while comparing with kitcomponent and osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c8b1b3219c
commit
d66e957cb1
@ -1440,7 +1440,7 @@ sub addkitcomp
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ( $os{$osimage}{minorversion} and ($os{$osimage}{minorversion} ne $kitcomps{$kitcomp}{osminorversion}) ) {
|
||||
if ( $kitcomps{$kitcomp}{osminorversion} and ($os{$osimage}{minorversion} ne $kitcomps{$kitcomp}{osminorversion}) ) {
|
||||
my %rsp;
|
||||
push@{ $rsp{data} }, "osimage $osimage doesn't fit to kit component $kitcomp with attribute minorversion";
|
||||
xCAT::MsgUtils->message( "E", \%rsp, $callback );
|
||||
@ -2381,7 +2381,7 @@ sub chkkitcomp
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ( $os{$osimage}{minorversion} and ($os{$osimage}{minorversion} ne $kitcomps{$kitcomp}{osminorversion}) ) {
|
||||
if ( $kitcomps{$kitcomp}{osminorversion} and ($os{$osimage}{minorversion} ne $kitcomps{$kitcomp}{osminorversion}) ) {
|
||||
my %rsp;
|
||||
push@{ $rsp{data} }, "kit component $kitcomp doesn't fit to osimage $osimage with attribute minorversion";
|
||||
xCAT::MsgUtils->message( "E", \%rsp, $callback );
|
||||
|
Loading…
Reference in New Issue
Block a user