New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #26068 - Improve inventory structure #258
Conversation
847f87a
to
26e10c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works well, question regarding http method, let's discuss this also with a bigger group on Monday
@@ -60,6 +60,16 @@ def assign_ansible_roles | |||
find_resource | |||
process_response @hostgroup.update(:ansible_roles => @ansible_roles) | |||
end | |||
|
|||
api :POST, '/hostgroups/ansible_inventory', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be POST? feels more like reading values, so GET may be more appropriate, is that because of potentially long hostgroup_ids? Maybe we should also accept search parameter to avoid specifying too long arrays (especially on host controller extensions)
@@ -62,6 +65,16 @@ def ansible_roles | |||
def assign_ansible_roles | |||
process_response @host.update(:ansible_roles => @ansible_roles) | |||
end | |||
|
|||
api :POST, '/hosts/ansible_inventory', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GET vs POST
Few comments after a bit broader discussions:
|
Thanks @xprazak2, merging! |
No description provided.