From dbdbc9cc8f88fd7bf6c1063b5396675a3bfcdec0 Mon Sep 17 00:00:00 2001 From: "Chi Wai, Chan" Date: Fri, 7 Apr 2023 09:50:16 +0800 Subject: [PATCH] [ubuntu] Fix missing return in ubuntu policy Ubuntu policy is missing a `return` in `get_upload_url()` method that causes the upload to be implictly disabled when `--upload-url` is specified. Closes: #3183 Signed-off-by: Chi Wai, Chan --- sos/policies/distros/ubuntu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/policies/distros/ubuntu.py b/sos/policies/distros/ubuntu.py index b25476a547..a6bf7260b9 100644 --- a/sos/policies/distros/ubuntu.py +++ b/sos/policies/distros/ubuntu.py @@ -78,6 +78,6 @@ def get_upload_url(self): return self._upload_url fname = os.path.basename(self.upload_archive_name) return self._upload_url + fname - super(UbuntuPolicy, self).get_upload_url() + return super(UbuntuPolicy, self).get_upload_url() # vim: set et ts=4 sw=4 :