Merge pull request #162 from netbox-community/cleanup

Remove debug statement
This commit is contained in:
Christian Mäder 2019-10-11 16:32:07 +02:00 committed by GitHub
commit ed8e339bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -27,7 +27,6 @@ with file.open('r') as stream:
group_permissions = group_details.get('permissions', []) group_permissions = group_details.get('permissions', [])
if group_permissions: if group_permissions:
group.permissions.clear() group.permissions.clear()
print("Permissions:", group.permissions.all())
for permission_codename in group_details.get('permissions', []): for permission_codename in group_details.get('permissions', []):
for permission in Permission.objects.filter(codename=permission_codename): for permission in Permission.objects.filter(codename=permission_codename):
group.permissions.add(permission) group.permissions.add(permission)