Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We allow setting the node's name a few different ways: the `name` system property, the setting `name`, and the setting `node.name`. There is an order of preference to these settings that gets applied, which can copy values from the system property or `node.name` setting to the `name` setting. When setting only `node.name` to one of the prompt placeholders, the user would be prompted twice as the value of `node.name` is copied to `name` prior to prompting for input. Additionally, the value entered by the user for `node.name` would not be used and only the value entered for `name` would be used. This fix changes the behavior to only prompt once when `node.name is set` and `name` is not set. This is accomplished by waiting until all values have been prompted and replaced, then the logic for determining the node's name is executed. Closes #11564
- Loading branch information
Showing
2 changed files
with
99 additions
and
16 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