mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Changing how get_one returns
This commit is contained in:
@@ -87,7 +87,7 @@ def main():
|
||||
org_id = module.resolve_name_to_id('organizations', organization)
|
||||
|
||||
# Attempt to look up team based on the provided name and org ID
|
||||
team, name = module.get_one('teams', name_or_id=name, **{
|
||||
team = module.get_one('teams', name_or_id=name, **{
|
||||
'data': {
|
||||
'organization': org_id
|
||||
}
|
||||
@@ -99,7 +99,7 @@ def main():
|
||||
|
||||
# Create the data that gets sent for create and update
|
||||
team_fields = {
|
||||
'name': new_name if new_name else name,
|
||||
'name': new_name if new_name else (module.get_item_name(team) if team else name),
|
||||
'organization': org_id
|
||||
}
|
||||
if description is not None:
|
||||
|
||||
Reference in New Issue
Block a user