Skip to content

[bug] Includes parameter not working #794

@lbonini94

Description

@lbonini94

Describe the bug
The includes parameter is not loading the files properly

To Reproduce
Steps to reproduce the behavior:

  1. Having the following folder structure
├── conf
│   ├── database
│   │   └── postgre.toml
│   └── settings.toml
└── config.py
  1. Having the following config file
# config.py
from dynaconf import Dynaconf

settings = Dynaconf(
    envvar_prefix="DYNACONF",
    settings_files=['conf/settings.toml',
                    'conf/.secrets.toml'],
    includes=['conf/**/*.toml']
)
  1. Run dynaconf -i config.settings list and the parameters inside conf/database/postgre.toml are not showed.
Working in main environment 
A<int> 3
B<int> 2
  1. Having the folling .toml files
# conf/settings.toml
a=3
b=2
# conf/database/postgre.toml
included_host="0.0.0.0"

Expected behavior
Output:

Working in main environment 
A<int> 3
B<int> 2
INCLUDED_HOST<str> "0.0.0.0"

Environment (please complete the following information):

  • OS: OS: Pop!_OS 22.04 LTS x86_64
  • Dynaconf Version 3.1.9

Metadata

Metadata

Assignees

Labels

DocsNot a BugNot a Problem, expected behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions