Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update reclass to release v1.5.6 #146

Merged
merged 1 commit into from Sep 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion kapitan/reclass
9 changes: 6 additions & 3 deletions kapitan/resources.py
Expand Up @@ -199,7 +199,8 @@ def inventory_reclass(inventory_path):
reclass_config = {'storage_type': 'yaml_fs',
'inventory_base_uri': inventory_path,
'nodes_uri': os.path.join(inventory_path, 'targets'),
'classes_uri': os.path.join(inventory_path, 'classes')
'classes_uri': os.path.join(inventory_path, 'classes'),
'compose_node_name': False
}

try:
Expand All @@ -219,8 +220,10 @@ def inventory_reclass(inventory_path):
logger.debug("Using reclass inventory config defaults")

try:
storage = reclass.get_storage(reclass_config['storage_type'], reclass_config['nodes_uri'],
reclass_config['classes_uri'])
storage = reclass.get_storage(reclass_config['storage_type'],
reclass_config['nodes_uri'],
reclass_config['classes_uri'],
reclass_config['compose_node_name'])
class_mappings = reclass_config.get('class_mappings') # this defaults to None (disabled)
_reclass = reclass.core.Core(storage, class_mappings, reclass.settings.Settings())

Expand Down