mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-02 17:47:37 +00:00
Merge pull request #4312 from whowutwut/unknown_purpose
[OpenBMC] Initialize variables to Unknown in loop incase BMC doesn't respond with values
This commit is contained in:
@@ -2446,6 +2446,11 @@ sub rflash_response {
|
||||
xCAT::SvrUtils::sendmsg("-" x 55, $callback, $node);
|
||||
|
||||
foreach my $key_url (keys %{$response_info->{data}}) {
|
||||
# Initialize values to Unknown for each loop, incase they are not defined in the BMC
|
||||
$update_activation = "Unknown";
|
||||
$update_purpose = "Unknown";
|
||||
$update_version = "Unknown";
|
||||
|
||||
my %content = %{ ${ $response_info->{data} }{$key_url} };
|
||||
|
||||
$update_id = (split(/\//, $key_url))[ -1 ];
|
||||
|
Reference in New Issue
Block a user