aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2024-04-19 19:40:17 +0100
committerJake Hunsaker <jacob.r.hunsaker@gmail.com>2024-04-24 09:55:30 -0400
commit08563ef860ff6273ead32f9c7117ddbc915f8cc3 (patch)
tree8efb91b967e2fdced8bdd5ef7f5c6f5f0cda5dd7
parent3b15149de1fd3eb7716732961e257467fbd6f200 (diff)
downloadsos-08563ef860ff6273ead32f9c7117ddbc915f8cc3.tar.gz
[pylint] Fix deprecated warnings
* W4903: deprecated-argument * W4902: deprecated-method Signed-off-by: Arif Ali <arif.ali@canonical.com>
-rw-r--r--sos/cleaner/archives/__init__.py1
-rw-r--r--sos/collector/clusters/ocp.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/sos/cleaner/archives/__init__.py b/sos/cleaner/archives/__init__.py
index 86aa8e04..f7c5eb58 100644
--- a/sos/cleaner/archives/__init__.py
+++ b/sos/cleaner/archives/__init__.py
@@ -292,6 +292,7 @@ class SoSObfuscationArchive():
else:
shutil.rmtree(name)
self.log_debug("Removing %s" % self.extracted_path)
+ # pylint: disable-next=deprecated-argument
shutil.rmtree(self.extracted_path, onerror=force_delete_file)
def extract_self(self):
diff --git a/sos/collector/clusters/ocp.py b/sos/collector/clusters/ocp.py
index db47cdad..b1ab95c3 100644
--- a/sos/collector/clusters/ocp.py
+++ b/sos/collector/clusters/ocp.py
@@ -243,7 +243,7 @@ class ocp(Cluster):
return 'oc'
self.log_info("Local installation of 'oc' not found or is not "
"correctly configured. Will use ControlPersist.")
- self.ui_log.warn(
+ self.ui_log.warning(
"Preferred transport 'oc' not available, will fallback to SSH."
)
if not self.opts.batch: