mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 15:14:07 +02:00
Fix "object list" output for empty fields
This commit is contained in:
parent
d8e1943671
commit
bae96ca524
@ -227,6 +227,11 @@ void ObjectListCommand::PrintValue(std::ostream& fp, const Value& val)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (val.IsEmpty()) {
|
||||||
|
fp << "null";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fp << Convert::ToString(val);
|
fp << Convert::ToString(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user