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. 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:

View file

@ -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']])