Skip to content

Commit

Permalink
print authz dict from yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaribelleHGomez committed Aug 4, 2021
1 parent 92b69c7 commit 383a64b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fence/sync/sync_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -1582,9 +1582,7 @@ def _update_arborist(self, session, user_yaml):
self.logger.info("couldn't put group: {}".format(str(e)))

# Now add back policies that are in the user.yaml
self.logger.info(
"ANON POLICIES: {}".format(user_yaml.authz.get("anonymous_policies", []))
)
self.logger.info("YAML AUTHZ DICT: {}".format(user_yaml.authz))
for policy in user_yaml.authz.get("anonymous_policies", []):
self.logger.info("anon policy: {}".format(str(policy)))
self.arborist_client.grant_group_policy("anonymous", policy)
Expand Down

0 comments on commit 383a64b

Please sign in to comment.