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.
|
||||
"""
|
||||
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:
|
||||
|
|
|
@ -162,7 +162,7 @@ executed which configures/installs host.
|
|||
Request path recognies following formats:
|
||||
|
||||
* :strong:`/config/.*` for config
|
||||
* :strong:`/install/.*` for install
|
||||
* :strong:`/install/.*` for install
|
||||
|
||||
|
||||
.. option:: -6, --ipv6
|
||||
|
|
|
@ -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']])
|
||||
|
|
Loading…
Reference in a new issue