mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 19:22:05 +00:00
Handle RESTAPI parameters with null values
This commit is contained in:
parent
2b5d10e3f7
commit
884d9d8a10
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user