collection, allow roles to be added to multiple teams and users

This commit is contained in:
sean-m-sullivan
2023-04-30 15:06:47 -04:00
parent eb7407593f
commit 0fb334e372
3 changed files with 95 additions and 31 deletions

View File

@@ -330,11 +330,6 @@ class ControllerAPIModule(ControllerModule):
else:
self.update_secrets = True
@staticmethod
def param_to_endpoint(name):
exceptions = {'inventory': 'inventories', 'target_team': 'teams', 'workflow': 'workflow_job_templates'}
return exceptions.get(name, '{0}s'.format(name))
@staticmethod
def get_name_field_from_endpoint(endpoint):
return ControllerAPIModule.IDENTITY_FIELDS.get(endpoint, 'name')