mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Fix "object list" output for empty fields
This commit is contained in:
parent
d8e1943671
commit
bae96ca524
1 changed files with 5 additions and 0 deletions
|
|
@ -227,6 +227,11 @@ void ObjectListCommand::PrintValue(std::ostream& fp, const Value& val)
|
|||
return;
|
||||
}
|
||||
|
||||
if (val.IsEmpty()) {
|
||||
fp << "null";
|
||||
return;
|
||||
}
|
||||
|
||||
fp << Convert::ToString(val);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue