Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mleneveut committed Jun 24, 2024
1 parent 65acb0b commit bbdbfa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/modules/hashivault/hashivault_acl_policy_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@ def hashivault_acl_policy_get(params):
policy = policy.get('data', policy).get('policy', policy)
except InvalidPath as e:
policy = None

if policy is None:
result = {"changed": False, "rc": 1, "failed": True}
result['msg'] = u"Policy \"%s\" does not exist." % name
return result
else:
return {'rules': policy}


if __name__ == '__main__':
main()

0 comments on commit bbdbfa4

Please sign in to comment.