diff --git a/plugins/modules/podman_image.py b/plugins/modules/podman_image.py index 7277020e..a9bc1dec 100644 --- a/plugins/modules/podman_image.py +++ b/plugins/modules/podman_image.py @@ -604,8 +604,8 @@ def _get_args_containerfile_hash(self): should_hash_args_containerfile = ( context_has_containerfile or - self.build.get('file') != None or - self.build.get('container_file') != None + self.build.get('file') is not None or + self.build.get('container_file') is not None ) if should_hash_args_containerfile: