-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-11328) Fallback to node request in configurer
If we can't load our last server specified environment, then fallback to making a node request like we used to. This way if we're supposed to use a server specified environment and we upgrade, then we don't revert to "production" and redownload plugins. A node request will not be made if the `initial_environment` and the `converged_environment` in the lastrunfile are identical, and the `run_mode` is `agent`. The logic is similar to what was removed in commit 39df438 except we're using `fail_on_404` so `Puppet::Node.indirection.find` will raise instead of returning nil. We also don't clear facts/query_options. Co-authored-by: Josh Cooper <[email protected]>
- Loading branch information
1 parent
2163522
commit f0214e6
Showing
3 changed files
with
150 additions
and
32 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
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