mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-29 03:13:09 +01:00
Merge pull request #632 from grawert/startup_scripts_typos
Startup scripts typos
This commit is contained in:
commit
661b6b07a3
@ -18,6 +18,6 @@ for groupname, group_details in groups.items():
|
|||||||
|
|
||||||
if user:
|
if user:
|
||||||
group.user_set.add(user)
|
group.user_set.add(user)
|
||||||
print(" 👤 Assigned user %s to group %s" % (username, AdminGroup.name))
|
print(" 👤 Assigned user %s to group %s" % (username, group.name))
|
||||||
|
|
||||||
group.save()
|
group.save()
|
||||||
|
@ -47,7 +47,10 @@ for permission_name, permission_details in object_permissions.items():
|
|||||||
|
|
||||||
if group:
|
if group:
|
||||||
object_permission.groups.add(group)
|
object_permission.groups.add(group)
|
||||||
print(" 👥 Assigned group %s object permission of %s" % (groupname, groupname))
|
print(
|
||||||
|
" 👥 Assigned group %s object permission of %s"
|
||||||
|
% (groupname, object_permission.name)
|
||||||
|
)
|
||||||
|
|
||||||
if permission_details.get("users", 0):
|
if permission_details.get("users", 0):
|
||||||
for username in permission_details["users"]:
|
for username in permission_details["users"]:
|
||||||
@ -55,6 +58,9 @@ for permission_name, permission_details in object_permissions.items():
|
|||||||
|
|
||||||
if user:
|
if user:
|
||||||
object_permission.users.add(user)
|
object_permission.users.add(user)
|
||||||
print(" 👤 Assigned user %s object permission of %s" % (username, groupname))
|
print(
|
||||||
|
" 👤 Assigned user %s object permission of %s"
|
||||||
|
% (username, object_permission.name)
|
||||||
|
)
|
||||||
|
|
||||||
object_permission.save()
|
object_permission.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user