From d72ee7bd89ec5512eb0dde3f31c3a3e3fb67f4e3 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Tue, 8 Jan 2019 13:39:45 +0200 Subject: [PATCH] Disable pylint no-member errors for 2 dnf constants Related: rhbz#1653934 --- src/pylorax/dnfhelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pylorax/dnfhelper.py b/src/pylorax/dnfhelper.py index aa1f9804..883e26f2 100644 --- a/src/pylorax/dnfhelper.py +++ b/src/pylorax/dnfhelper.py @@ -94,7 +94,7 @@ class LoraxRpmCallback(dnf.callback.TransactionProgress): self._last_ts = None def progress(self, package, action, ti_done, ti_total, ts_done, ts_total): - if action == dnf.transaction.PKG_INSTALL: + if action == dnf.transaction.PKG_INSTALL: # pylint: disable=no-member # do not report same package twice if self._last_ts == ts_done: return @@ -102,7 +102,7 @@ class LoraxRpmCallback(dnf.callback.TransactionProgress): msg = '(%d/%d) %s' % (ts_done, ts_total, package) logger.info(msg) - elif action == dnf.transaction.TRANS_POST: + elif action == dnf.transaction.TRANS_POST: # pylint: disable=no-member msg = "Performing post-installation setup tasks" logger.info(msg)