this seems similar to https://github.com/theforeman/foreman/pull/1217, hopefully this would be merged before