mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-03 09:05:40 +00:00
PVE::CLIHandler::data_to_text: return '' for undef
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
c1e843677d
commit
16f2033235
@ -432,7 +432,7 @@ my $print_bash_completion = sub {
|
||||
sub data_to_text {
|
||||
my ($data) = @_;
|
||||
|
||||
return undef if !defined($data);
|
||||
return '' if !defined($data);
|
||||
|
||||
if (my $class = ref($data)) {
|
||||
return to_json($data, { utf8 => 1, canonical => 1 });
|
||||
|
Loading…
Reference in New Issue
Block a user