2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Merge pull request #7367 from gurevichmark/rest_api_null

Handle RESTAPI parameters with null values
This commit is contained in:
besawn 2023-03-20 11:03:02 -04:00 committed by GitHub
commit 35b01485a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2093,7 +2093,7 @@ sub defhdl {
push(@args, "$k=$val") if $val;
next;
}
push @args, "$k=$paramhash->{$k}" if $paramhash->{$k};
push @args, ($paramhash->{$k}) ? "$k=$paramhash->{$k}" : "$k=";
}
if ($params->{'resourcename'} eq "allnode") {