Skip to content

Commit

Permalink
Merge pull request #1170 from kapicorp/test/fix-path-not-found
Browse files Browse the repository at this point in the history
Fix path not found when using compose-node
  • Loading branch information
ademariag committed Apr 16, 2024
2 parents 17d998f + d825537 commit e60c6db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions kapitan/inputs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def compile_input_path(self, input_path, comp_obj, ext_vars, **kwargs):
prune_output=prune_output,
**kwargs,
)

except KapitanError as e:
raise CompileError("{}\nCompile error: failed to compile target: {}".format(e, target_name))

Expand Down
2 changes: 1 addition & 1 deletion kapitan/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def load_target_inventory(inventory_path, targets, ignore_class_notfound=False):
# check if parameters.kapitan is empty
if not target_obj:
raise InventoryError(f"InventoryError: {target_name}: parameters.kapitan has no assignment")
target_obj["target_full_path"] = inv.targets[target_name].name
target_obj["target_full_path"] = inv.targets[target_name].name.replace(".", "/")
require_compile = not ignore_class_notfound
valid_target_obj(target_obj, require_compile)
validate_matching_target_name(target_name, target_obj, inventory_path)
Expand Down

0 comments on commit e60c6db

Please sign in to comment.