#542 Bug fix: failure to fetch gating.yaml
Merged by gnaponie. Opened by gnaponie.
gnaponie/greenwave FACTORY-5877  into  master

Download 542.patch

New configuration variables were introduced, but REMOTE_RULE_POLICIES
was not always present. Trying to get this config param, without a
fallback will provoke this error:
TypeError: 'NoneType' object does not support item assignment
Changed the code to assume {} as default value.

Ref: FACTORY-5877

Signed-off-by: Giulia Naponiello gnaponie@redhat.com

This won't work for Fedora stage because ProductionConfig already defines REMOTE_RULE_POLICIES[*] it will override their DIST_GIT_URL_TEMPLATE (stage dist-git is src.stg.fedoraproject.org).

I think the quick fix is to include the REMOTE_RULE_POLICIES in TestingConfig only.

rebased onto 7568236ccac412d362d214c1d814c7bf0920108d

@lholecek could you please check once again?

Commit bf6557f5 fixes this pull-request

Pull-Request has been merged by gnaponie

Pull-Request has been merged by gnaponie

Metadata