Merge branch 'master' into feature/trigger

This commit is contained in:
Darko Poljak 2016-11-01 08:17:50 +01:00
commit ab5d941802
3 changed files with 8 additions and 2 deletions

View file

@ -30,7 +30,8 @@ class Install(cdist.config.Config):
In install mode, we only care about install 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:
yield cdist_object
else:

View file

@ -165,6 +165,11 @@ def commandline():
dest='hostfile', required=False)
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
parser['shell'] = parser['sub'].add_parser(
'shell', parents=[parser['loglevel']])