forked from ungleich-public/cdist
pep8
This commit is contained in:
parent
d30b1a2f54
commit
7c7a98d083
2 changed files with 9 additions and 7 deletions
|
@ -211,7 +211,9 @@ class Config(object):
|
||||||
log.trace(("Starting multiprocessing Pool for {} "
|
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 "
|
log.trace(("Multiprocessing for parallel host operation "
|
||||||
"finished"))
|
"finished"))
|
||||||
log.trace(("Multiprocessing for parallel host operation "
|
log.trace(("Multiprocessing for parallel host operation "
|
||||||
|
|
|
@ -368,8 +368,8 @@ class InventoryTag(Inventory):
|
||||||
tag, host))
|
tag, host))
|
||||||
host_tags.add(tag)
|
host_tags.add(tag)
|
||||||
elif self.action == "del":
|
elif self.action == "del":
|
||||||
self.log.debug("Deleting tag \'{}\' for host \'{}\'".format(
|
self.log.debug("Deleting tag \'{}\' for host "
|
||||||
tag, host))
|
"\'{}\'".format(tag, host))
|
||||||
if tag in host_tags:
|
if tag in host_tags:
|
||||||
host_tags.remove(tag)
|
host_tags.remove(tag)
|
||||||
self.log.trace("new host tags: {}".format(host_tags))
|
self.log.trace("new host tags: {}".format(host_tags))
|
||||||
|
|
Loading…
Reference in a new issue