Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(CAT-2052 Pass target container URI instead of container SHA ID to ad…
…d_feature_to_node() method There is a bug in the 'install_agent' task. It is supposed to install the agent on a host (a VM or a docker container) using bolt and then add the 'puppet-agent' feature to the host in the litmus_inventory file. Bolt returns the SHA ID of the container instead of the localhost URI after it installs the agent. The feature is added through the add_feature_to_node() method. The last parameter of the method is being sent as result["target"]. This is fine in the case of VMs since its their IPv4 address and the method is expecting just that. But in case of docker containers it is their SHA container ID and the method expecting the localhost:{port} URI. This results in the feature not being added to the host. Since bolt is returning the results in the same order it is provided the input 'targets', we can add the feature by indexing the 'targets' array in that order. See https://perforce.atlassian.net/browse/CAT-2052?focusedCommentId=2970824
- Loading branch information