From 0ce13bb3d1bc3e90634929a4a9cf8ac15ed96b83 Mon Sep 17 00:00:00 2001 From: gw Date: Tue, 13 Aug 2024 18:23:27 +0100 Subject: [PATCH] Fix linting. Signed-off-by: gw --- plugins/modules/podman_image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/podman_image.py b/plugins/modules/podman_image.py index 03284106..5361030b 100644 --- a/plugins/modules/podman_image.py +++ b/plugins/modules/podman_image.py @@ -554,8 +554,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: