Skip to content

Commit

Permalink
do not try to delete built in groups
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Dec 12, 2019
1 parent 9f49027 commit 17145ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fence/sync/sync_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,8 @@ def _update_arborist(self, session, user_yaml):
)
useryaml_group_names = set(g["name"] for g in groups)
for deleted_group in current_group_names.difference(useryaml_group_names):
self.arborist_client.delete_group(deleted_group)
if deleted_group not in ["anonymous", "logged-in"]:
self.arborist_client.delete_group(deleted_group)

# create/update the groups defined in the user.yaml
for group in groups:
Expand Down

0 comments on commit 17145ca

Please sign in to comment.