forked from ungleich-public/cdist
pep8
This commit is contained in:
parent
cca6693b2e
commit
acf94abe26
2 changed files with 5 additions and 4 deletions
|
@ -29,9 +29,10 @@ class Install(cdist.config.Config):
|
||||||
"""Short name for object list retrieval.
|
"""Short name for object list retrieval.
|
||||||
In install mode, we only care about install objects.
|
In install mode, we only care about install objects.
|
||||||
"""
|
"""
|
||||||
for cdist_object in cdist.core.CdistObject.list_objects(self.local.object_path,
|
for cdist_object in cdist.core.CdistObject.list_objects(
|
||||||
self.local.type_path):
|
self.local.object_path, self.local.type_path):
|
||||||
if cdist_object.cdist_type.is_install:
|
if cdist_object.cdist_type.is_install:
|
||||||
yield cdist_object
|
yield cdist_object
|
||||||
else:
|
else:
|
||||||
self.log.debug("Running in install mode, ignoring non install object: {0}".format(cdist_object))
|
self.log.debug("Running in install mode, ignoring non install"
|
||||||
|
"object: {0}".format(cdist_object))
|
||||||
|
|
|
@ -164,7 +164,7 @@ def commandline():
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
parser['install'] = parser['sub'].add_parser('install', add_help=False,
|
parser['install'] = parser['sub'].add_parser('install', add_help=False,
|
||||||
parents=[parser['config']])
|
parents=[parser['config']])
|
||||||
parser['install'].set_defaults(func=cdist.install.Install.commandline)
|
parser['install'].set_defaults(func=cdist.install.Install.commandline)
|
||||||
|
|
||||||
for p in parser:
|
for p in parser:
|
||||||
|
|
Loading…
Reference in a new issue