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
I am adding support for VirtWhoConfig in #540 and #541 and am wondering what the best way to handle the foreman_virt_who_configure_config Hash that the Config API requires. Unfortunately there doesn't seem to be any public posting of the api docs, but if you have a satellite its at sat.example.com/apidoc/v2/configs/update.html
Right now in order to handle it I have to override create_payload, update_payload, and possible others.
I was wondering if there was a potential here to add something to nail gun that would better handle hashs (since a lot of other entities seem to use them). Dict seams to be the closest, but I was thinking we would want it to be something that would have other Fields as values and be able to handle those specially (ie create_missing, etc).
Do people see where I am going with this, I am working on an example and I will try to post it.
The text was updated successfully, but these errors were encountered:
@pgagne
I'd say we'd want to update the create_raw method to allow customization,
so instead of directly sending the result of create_payload() method,
we should be able to pass a custom payload.
In your case it would be something like
I am adding support for VirtWhoConfig in #540 and #541 and am wondering what the best way to handle the
foreman_virt_who_configure_config
Hash that the Config API requires. Unfortunately there doesn't seem to be any public posting of the api docs, but if you have a satellite its atsat.example.com/apidoc/v2/configs/update.html
Right now in order to handle it I have to override
create_payload
,update_payload
, and possible others.I was wondering if there was a potential here to add something to nail gun that would better handle hashs (since a lot of other entities seem to use them).
Dict
seams to be the closest, but I was thinking we would want it to be something that would have otherFields
as values and be able to handle those specially (ie create_missing, etc).Do people see where I am going with this, I am working on an example and I will try to post it.
The text was updated successfully, but these errors were encountered: