Add import support for organization_policies

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
Chris Stephens 2019-03-13 22:42:22 +00:00 committed by Alex Stephen
parent d259a89a03
commit 6e02269e5b

View file

@ -325,13 +325,13 @@ class GcpRequest(object):
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':