mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 19:07:39 -02:30
fix mk_label method
This commit is contained in:
@@ -255,7 +255,7 @@ def create_organization(name, **kwargs):
|
|||||||
if type(l) is Label:
|
if type(l) is Label:
|
||||||
labels[l.name] = l
|
labels[l.name] = l
|
||||||
else:
|
else:
|
||||||
labels[l] = mk_label(l, org, persisted=persisted)
|
labels[l] = mk_label(l, organization=org, persisted=persisted)
|
||||||
|
|
||||||
apply_roles(kwargs.get('roles'), [superusers, users, teams, projects, labels], persisted)
|
apply_roles(kwargs.get('roles'), [superusers, users, teams, projects, labels], persisted)
|
||||||
return Objects(organization=org,
|
return Objects(organization=org,
|
||||||
|
|||||||
Reference in New Issue
Block a user