Bugfix host creation for agent role #818
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: #743
What is the new behavior?
The agent role now properly moves hosts based on the
checkmk_agent_folder
variable.Before, there were two possible behaviors. Either the host was in the expected folder and its atrributes were updated if set. Or the agent role would fail, if the host was in a different folder than defined in
checkmk_agent_folder
and had attributes set. While the new behavior now actually is idempotent, it might be surprising, that hosts would be moved in the folder structure,if thecheckmk_agent_folder
variable does not match the current folder of the host. So while this is a bug fix by definition, please take note and check your configuration!Other information
ToDo