From fdb7593cb0e0dc04648b13f21bf9253f43487c4e Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Thu, 5 Oct 2017 13:18:44 +0300 Subject: [PATCH] Rename parameters to match names that dnf uses avoids 'Parameters differ from overridden method' warnings --- src/pylorax/dnfhelper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pylorax/dnfhelper.py b/src/pylorax/dnfhelper.py index 291499cc..39aadd56 100644 --- a/src/pylorax/dnfhelper.py +++ b/src/pylorax/dnfhelper.py @@ -66,14 +66,14 @@ class LoraxDownloadCallback(dnf.callback.DownloadProgress): } self.output.write(msg % vals) - def end(self, payload, status, err_msg): + def end(self, payload, status, msg): nevra = str(payload) if status is dnf.callback.STATUS_OK: self.downloads[nevra] = payload.download_size self.pkgno += 1 self._update() return - logger.critical("Failed to download '%s': %d - %s", nevra, status, err_msg) + logger.critical("Failed to download '%s': %d - %s", nevra, status, msg) def progress(self, payload, done): nevra = str(payload) @@ -105,5 +105,5 @@ class LoraxRpmCallback(dnf.callback.TransactionProgress): msg = "Performing post-installation setup tasks" logger.info(msg) - def error(self, err_msg): - logger.warning(err_msg) + def error(self, message): + logger.warning(message)