-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) Pass the appropriate Puppetfile path to module loader
Previously, we always passed the `puppetfile_name` from the `R10K::Puppetfile` class to `R10K::ModuleLoader::Puppetfile`. That was an attempt to fix a bug where relative Puppetfile paths were not getting resolved correctly by the module loader (9082511). That, however, unearthed another bug: when instantiating a new instance of `R10K::Puppetfile` with the `puppetfile_path` option, that path would get completely ignored in favor of the default `puppetfile_name` value. This broke usage of the `r10k puppetfile purge` command. This commit ensures that we pass the appropriate Puppetfile path to the module loader - we pass the `puppetfile_path` if it exists, otherwise we pass the `puppetfile_name`. In order to maintain the fix for the original bug around relative Puppetfile paths, we no longer attempt to resolve the `puppetfile_path` in the `R10K::Puppetfile` class, since `R10K::ModuleLoader::Puppetfile` already handles that resolution.
- Loading branch information
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters