Merge branch 'master' into feature/trigger
This commit is contained in:
commit
ab5d941802
3 changed files with 8 additions and 2 deletions
|
@ -30,7 +30,8 @@ class Install(cdist.config.Config):
|
||||||
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(
|
for cdist_object in cdist.core.CdistObject.list_objects(
|
||||||
self.local.object_path, self.local.type_path):
|
self.local.object_path, self.local.type_path,
|
||||||
|
self.local.object_marker_name):
|
||||||
if cdist_object.cdist_type.is_install:
|
if cdist_object.cdist_type.is_install:
|
||||||
yield cdist_object
|
yield cdist_object
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -165,6 +165,11 @@ def commandline():
|
||||||
dest='hostfile', required=False)
|
dest='hostfile', required=False)
|
||||||
parser['config'].set_defaults(func=cdist.config.Config.commandline)
|
parser['config'].set_defaults(func=cdist.config.Config.commandline)
|
||||||
|
|
||||||
|
# Install
|
||||||
|
parser['install'] = parser['sub'].add_parser('install', add_help=False,
|
||||||
|
parents=[parser['config']])
|
||||||
|
parser['install'].set_defaults(func=cdist.install.Install.commandline)
|
||||||
|
|
||||||
# Shell
|
# Shell
|
||||||
parser['shell'] = parser['sub'].add_parser(
|
parser['shell'] = parser['sub'].add_parser(
|
||||||
'shell', parents=[parser['loglevel']])
|
'shell', parents=[parser['loglevel']])
|
||||||
|
|
Loading…
Reference in a new issue