Skip to content

Commit

Permalink
Fix multi-renaming-issue refs Icinga#2497
Browse files Browse the repository at this point in the history
  • Loading branch information
moreamazingnick authored Aug 31, 2022
1 parent 1682175 commit bc3d4c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/Director/Web/Controller/ObjectsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,11 @@ protected function loadMultiObjectsFromParams()
$objects[$name] = $class::load($name, $db);
} elseif ($col === 'uuid') {
$object = $store->load($table, Uuid::fromString($ex->getExpression()));
$objects[$object->getObjectName()] = $object;
$name = $object->getObjectName();
if($object->getProperty("object_type") === "object" && strtolower($object->get("type")) === "service"){
$name = $object->get("host")."!".$name;
}
$objects[$name] = $object;
} else {
throw new InvalidArgumentException("'$col' is no a valid key component for '$type'");
}
Expand Down

0 comments on commit bc3d4c2

Please sign in to comment.