Taken from https://gerrit.ovirt.org/55385