From 2ccf1397435068d1a810754989dd40a4b6426874 Mon Sep 17 00:00:00 2001 From: s3lph Date: Wed, 8 Feb 2023 01:50:02 +0100 Subject: [PATCH] feat(config): implement diff mode support --- plugins/modules/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/modules/config.py b/plugins/modules/config.py index 865f2b9..1504394 100644 --- a/plugins/modules/config.py +++ b/plugins/modules/config.py @@ -222,6 +222,8 @@ def run_module(): old_value = None else: old_value = rc.stdout + if old_value is None and new_value is None: + continue if old_value == v: continue result['changed'] = True