[collection] Add 'instance' module

Signed-off-by: Rick Elrod <rick@elrod.me>
This commit is contained in:
Rick Elrod
2022-09-19 06:20:12 -05:00
committed by Jeff Bradberry
parent b879cbc2ec
commit 7d645c8ff6
4 changed files with 205 additions and 1 deletions

View File

@@ -903,6 +903,8 @@ class ControllerAPIModule(ControllerModule):
item_name = existing_item['identifier']
elif item_type == 'credential_input_source':
item_name = existing_item['id']
elif item_type == 'instance':
item_name = existing_item['hostname']
else:
item_name = existing_item['name']
item_id = existing_item['id']