Skip to content

Conversation

@NaddiNadja
Copy link
Contributor

This commit will address this comment: #202 (comment)
And fix the first problem in #203

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
In the `getconf()` method, we allow users to overwrite configuration
file values with local environment variables by replacing all dots in
the key with underscores, as dots are not allowed in env var keys. The
same goes for dashes however, so there was a bug where it was not
possible to overwrite a key like `system-imaging.images.fedora-43-x86_64`
because an env var key like "SYSTEM-IMAGING_IMAGES_FEDORA-43-x86_64"
could not be defined. This commit changes the approach so that both dots
and dashes should be replaced by underscores.

Signed-off-by: Nadja Brix Koch <n.koch@samsung.com>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21136656586

Details

  • 7 of 8 (87.5%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 78.809%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/cijoe/core/scripts/repository_prep.py 6 7 85.71%
Totals Coverage Status
Change from base Build 20759955782: 0.04%
Covered Lines: 1604
Relevant Lines: 2099

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

2 participants