2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Remove the check for {Priority} because a valid value is 0

This commit is contained in:
Victor Hu 2017-10-24 11:49:38 -04:00
parent d6bcd2f0e2
commit 03a7e660d5

View File

@ -2292,7 +2292,8 @@ sub rflash_response {
if (defined($content{Purpose}) and $content{Purpose}) {
$update_purpose = (split(/\./, $content{Purpose}))[ -1 ];
}
if (defined($content{Priority}) and $content{Priority}) {
# Just check defined because priority=0 is a valid value
if (defined($content{Priority})) {
$update_priority = (split(/\./, $content{Priority}))[ -1 ];
}
if (exists($functional->{$update_id}) ) {