Fix the code according to https://github.com/openSUSE-Team/obs_factory/p...

...ull/24