You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user I want to be able to pass a path to a YAML file with a list of Ansible Collections I wish to be represented by a Ansible Remote in the Ansible plugin
#226
Closed
ajsween opened this issue
May 6, 2021
· 4 comments
· Fixed by #229
When creating or updating a remote Collection for the Ansible plugin the REST API documents a parameter, "requirements_file." This parameter is currently exposed via the pulp CLI tool. However, it only accepts a string directly. When you instead pass a file path to a YAML file it fails to serialize the YAML file correctly to JSON and throws an exception. My YAML file looked similar to the following:
In examining the behavior of the wrapper today, I think this may actually be a bug. It appears to me that a file path is accepted but that serialization is not successful.
That is debatable. I'm pretty sure, JSON as a format is accepted, so adding YAML would be a feature.
Agreed, this may look weird when coming from an ansible minted mindset.
The change i envision to solve this would allow YAML anywhere in place of only JSON. And to me that is a feature.
When creating or updating a remote Collection for the Ansible plugin the REST API documents a parameter, "requirements_file." This parameter is currently exposed via the pulp CLI tool. However, it only accepts a string directly. When you instead pass a file path to a YAML file it fails to serialize the YAML file correctly to JSON and throws an exception. My YAML file looked similar to the following:
The text was updated successfully, but these errors were encountered: