2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-24 05:11:12 +00:00

Handle RESTAPI parameters with null values

This commit is contained in:
Mark Gurevich
2023-03-20 08:52:39 -04:00
parent 2b5d10e3f7
commit 884d9d8a10

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") {