From 7c7a98d0836acff05472ab54b0c0a81783a73126 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Tue, 25 Jul 2017 12:43:54 +0200 Subject: [PATCH] pep8 --- cdist/config.py | 12 +++++++----- cdist/inventory.py | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/cdist/config.py b/cdist/config.py index f153ced5..ca8dcfec 100644 --- a/cdist/config.py +++ b/cdist/config.py @@ -189,7 +189,7 @@ class Config(object): if args.parallel: pargs = (host, host_tags, host_base_path, hostdir, args, True) log.trace(("Args for multiprocessing operation " - "for host {}: {}".format(host, pargs))) + "for host {}: {}".format(host, pargs))) process_args.append(pargs) else: try: @@ -209,13 +209,15 @@ class Config(object): log.trace("Multiprocessing start method is {}".format( multiprocessing.get_start_method())) log.trace(("Starting multiprocessing Pool for {} " - "parallel host operation".format(args.parallel))) + "parallel host operation".format(args.parallel))) - results = mp_pool_run(cls.onehost, process_args, jobs=args.parallel) + results = mp_pool_run(cls.onehost, + process_args, + jobs=args.parallel) log.trace(("Multiprocessing for parallel host operation " - "finished")) + "finished")) log.trace(("Multiprocessing for parallel host operation " - "results: {}", results)) + "results: {}", results)) failed_hosts = [host for host, result in results if not result] diff --git a/cdist/inventory.py b/cdist/inventory.py index 32fbabdb..c9602e23 100644 --- a/cdist/inventory.py +++ b/cdist/inventory.py @@ -368,8 +368,8 @@ class InventoryTag(Inventory): tag, host)) host_tags.add(tag) elif self.action == "del": - self.log.debug("Deleting tag \'{}\' for host \'{}\'".format( - tag, host)) + self.log.debug("Deleting tag \'{}\' for host " + "\'{}\'".format(tag, host)) if tag in host_tags: host_tags.remove(tag) self.log.trace("new host tags: {}".format(host_tags))