From 5bad25cd6d73b337c3886f92de1f62f682f58d5c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 5 Jul 2013 15:02:36 +0200 Subject: [PATCH] add dry_run hint to verbose messages, not debug Signed-off-by: Nico Schottelius --- cdist/config_install.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cdist/config_install.py b/cdist/config_install.py index 55c6bb3f..9b732d23 100644 --- a/cdist/config_install.py +++ b/cdist/config_install.py @@ -147,16 +147,16 @@ class ConfigInstall(object): if self.dry_run: dry_run = "" else: - dry_run = "(dry run)" + dry_run = " (dry run)" - self.log.debug("Trying to run object %s%s" % (cdist_object.name, dry_run)) + self.log.debug("Trying to run object %s" % (cdist_object.name)) if cdist_object.state == core.CdistObject.STATE_DONE: raise cdist.Error("Attempting to run an already finished object: %s", cdist_object) cdist_type = cdist_object.cdist_type # Generate - self.log.info("Generating and executing code for " + cdist_object.name) + self.log.info("Generating and executing code for %s%s" % (cdist_object.name, dry_run)) cdist_object.code_local = self.code.run_gencode_local(cdist_object) cdist_object.code_remote = self.code.run_gencode_remote(cdist_object) if cdist_object.code_local or cdist_object.code_remote: