Open achevalet opened 3 years ago
Where is this parameter coming from? I don't see it in https://theforeman.org/api/2.4/apidoc/v2/hosts/create.html or https://theforeman.org/api/2.4/apidoc/v2/hosts/update.html
Hey, I think this is an undocumented parameter passed from the UI. Hammer also supports it: https://github.com/theforeman/hammer-cli-foreman/blob/master/lib/hammer_cli_foreman/hosts/common_update_options.rb#L37
Interesting. That parameter is not documented in the API at all. I've opened https://projects.theforeman.org/issues/32541 to fix that part.
Just a heads-up :-) (https://github.com/theforeman/foreman/pull/8719)
SUMMARY
overwrite=true
is required to update a host and overwrite the existing DNS record when ip/hostname changeISSUE TYPE