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':