mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-09 04:10:27 -07:00
Add import support for organization_policies
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
d259a89a03
commit
6e02269e5b
1 changed files with 2 additions and 2 deletions
|
@ -325,13 +325,13 @@ class GcpRequest(object):
|
||||||
def _compare_boolean(self, value1, value2):
|
def _compare_boolean(self, value1, value2):
|
||||||
try:
|
try:
|
||||||
# Both True
|
# Both True
|
||||||
if value1 and value2 is True:
|
if value1 and isinstance(value2, bool) and value2:
|
||||||
return None
|
return None
|
||||||
# Value1 True, value2 'true'
|
# Value1 True, value2 'true'
|
||||||
elif value1 and to_text(value2) == 'true':
|
elif value1 and to_text(value2) == 'true':
|
||||||
return None
|
return None
|
||||||
# Both False
|
# Both False
|
||||||
elif not value1 and not value2:
|
elif not value1 and isinstance(value2, bool) and not value2:
|
||||||
return None
|
return None
|
||||||
# Value1 False, value2 'false'
|
# Value1 False, value2 'false'
|
||||||
elif not value1 and to_text(value2) == 'false':
|
elif not value1 and to_text(value2) == 'false':
|
||||||
|
|
Loading…
Add table
Reference in a new issue