Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #212 from modular-magician/codegen-pr-1497
Browse files Browse the repository at this point in the history
Add import support for organization_policies
  • Loading branch information
chrisst authored Mar 14, 2019
2 parents 382b07a + e980df8 commit 34c64fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/module_utils/gcp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,13 @@ def _compare_value(self, value1, value2):
def _compare_boolean(self, value1, value2):
try:
# Both True
if value1 and value2 is True:
if value1 and isinstance(value2, bool) and value2:
return None
# Value1 True, value2 'true'
elif value1 and to_text(value2) == 'true':
return None
# Both False
elif not value1 and not value2:
elif not value1 and isinstance(value2, bool) and not value2:
return None
# Value1 False, value2 'false'
elif not value1 and to_text(value2) == 'false':
Expand Down

0 comments on commit 34c64fd

Please sign in to comment.