Skip to content

Use /etc/d-installer.yaml outside of a Git clone#301

Merged
imobachgs merged 1 commit intomasterfrom
read-etc
Nov 14, 2022
Merged

Use /etc/d-installer.yaml outside of a Git clone#301
imobachgs merged 1 commit intomasterfrom
read-etc

Conversation

@imobachgs
Copy link
Contributor

To make testing easier, d-installer reads the configuration file from a relative path (etc/d-installer.yaml). So when you are working with a Git clone, it reads the file from service/etc/d-installer.yaml).

The problem is that it checks that the file exists, but it does not check whether it is part of a Git clone or not. This PR should fix that problem, preventing the file in /usr/lib64/ruby/gems/3.1.0/gems/d-installer-0.5/etc/d-installer.yaml from being read.

@imobachgs imobachgs linked an issue Nov 14, 2022 that may be closed by this pull request
@imobachgs imobachgs changed the title [service] Use /etc/d-installer.yaml outside of a Git clone Use /etc/d-installer.yaml outside of a Git clone Nov 14, 2022
@coveralls
Copy link

Coverage Status

Coverage remained the same at 71.973% when pulling 40e8a44 on read-etc into 7e67366 on master.

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@imobachgs imobachgs merged commit bc432a2 into master Nov 14, 2022
@imobachgs imobachgs deleted the read-etc branch November 14, 2022 09:26
@imobachgs imobachgs mentioned this pull request Nov 16, 2022
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.

Read settings from /etc/d-installer.yaml

3 participants