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

Configuration file inheritance by name from parent directories. #1535

Open
cmorrison-idea11 opened this issue Nov 19, 2024 · 0 comments
Open

Comments

@cmorrison-idea11
Copy link

Subject of the issue

When a child config-template has the same name as a config-template in a parent directory, the parent config-template details are cascading into the child config-template.

nb. I'm not positive that this is not expected behaviour, as per config.yaml files, but it feels like very strange behaviour.

Your environment

  • Sceptre, version 4.5.2
  • Python 3.11.4
  • Debian 11, devcontainer.

Steps to reproduce

Given a folder structure like so:

config/
|_ config.yaml
|_ application.yaml
|_ /childconfig
    |_ application.yaml
    |_ config.yaml
templates/
|_/category
  |_ distribution.yaml

Where ./config/application.yaml contains:

template_path: category/distribution.yaml

parameters:
  Tenant: the_tenant

...

and ./config/childconfig/application.yaml contains:

template:
  path: category/distribution.yaml

parameters:
  Tenant: the_tenant

...

running sceptre create childconfig/application.yaml will reproduce the issue.

Expected behaviour

The stack specified by the child should be created, without inheriting values from files with the same name in parent directories.

Actual behaviour

Sceptre returns

"Both 'template' and 'template_path' are set. You should only set a value for template because template_path is deprecated."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant