mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
ObjectCommand: show created object name...
...even if given via JSON only fixes #2576
This commit is contained in:
parent
05362a093d
commit
5409558d3b
@ -141,10 +141,11 @@ class ObjectCommand extends Command
|
||||
} else {
|
||||
$props['object_name'] = $name;
|
||||
}
|
||||
}
|
||||
|
||||
if (! array_key_exists('object_name', $props)) {
|
||||
$this->fail('Cannot create an object with at least an object name');
|
||||
} else {
|
||||
if (! array_key_exists('object_name', $props)) {
|
||||
$this->fail('Cannot create an object with at least an object name');
|
||||
}
|
||||
$name = $props['object_name'];
|
||||
}
|
||||
|
||||
$object = IcingaObject::createByType(
|
||||
|
Loading…
x
Reference in New Issue
Block a user