Skip to content

Commit

Permalink
update reclass to release v1.5.6 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
gburiola authored and ramaro committed Sep 19, 2018
1 parent fc770a1 commit eb95bc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kapitan/reclass
9 changes: 6 additions & 3 deletions kapitan/resources.py
Expand Up @@ -197,7 +197,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 @@ -217,8 +218,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

0 comments on commit eb95bc3

Please sign in to comment.