From 6e02269e5b277fa04e9ca51b58c3502c9e34f7de Mon Sep 17 00:00:00 2001 From: Chris Stephens Date: Wed, 13 Mar 2019 22:42:22 +0000 Subject: [PATCH] Add import support for organization_policies Signed-off-by: Modular Magician --- plugins/module_utils/gcp_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/gcp_utils.py b/plugins/module_utils/gcp_utils.py index de3f95f..7e257ff 100644 --- a/plugins/module_utils/gcp_utils.py +++ b/plugins/module_utils/gcp_utils.py @@ -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':