From 28d3466e9d252b12575890c1c42b284ee1d01118 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Thu, 7 Sep 2017 12:32:04 +0200 Subject: [PATCH] Fix logging dry run line. --- cdist/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cdist/config.py b/cdist/config.py index 6566205d..d367b6ad 100644 --- a/cdist/config.py +++ b/cdist/config.py @@ -666,8 +666,9 @@ class Config(object): % (cdist_object.name)) self.code.transfer_code_remote(cdist_object) self.code.run_code_remote(cdist_object) - else: - self.log.info("Skipping code execution due to DRY RUN") + elif cdist_object.code_local or cdist_object.code_remote: + self.log.info("Skipping code execution for %s due to DRY RUN", + cdist_object.name) # Mark this object as done self.log.trace("Finishing run of " + cdist_object.name)