Ignore facter error when fetching repo

Even though a repo is set with skip_if_unavailable=True,
Facter logs "Error:..." and then "Ignoring repositories...".
We need to add this regexp to ignored list.

Note: if repo should not be skipped if unavailable, dnf
would have raised error before Facter run.

Change-Id: Id2a3c27d8afb4a1d0e852a70e5a9ccd07e485399
This commit is contained in:
Joel Capitao 2022-02-03 16:28:49 +01:00
parent 2f69faf24a
commit 9bfd5b8482
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,10 @@ re_ignore = re.compile(
'yum.*?install swift-plugin-s3|'
# facter gives a weird NM error when it's disabled, due to
# https://tickets.puppetlabs.com/browse/FACT-697
'NetworkManager is not running'
'NetworkManager is not running|'
# facter logs Error even though the repository is set to be skipped
# if unavailable
'Failed to download metadata for repo'
)
re_notice = re.compile(r'notice: .*Notify\[packstack_info\]'
r'\/message: defined \'message\' as '