See comment https://github.com/theforeman/foreman/pull/1068/files#diff-3df6403e2684889866fda8e7a0a7b6f7R23