diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-06-06 00:18:33 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-06-06 00:20:19 +0100 |
commit | 0e4e6618d37019f50be6c6ee8365847608a39aab (patch) | |
tree | 844603b55e34534e891bf693e225019e4b8e65be | |
parent | f11621add7ac8c78a1c6dda853f322b7a7602a9c (diff) | |
download | sos-0e4e6618d37019f50be6c6ee8365847608a39aab.tar.gz |
[policy] Rename preferred_archive_name()
The preferred_archive_name() policy method returns a class, not
a name. Rename it to 'get_preferred_archive()'.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/policies/__init__.py | 2 | ||||
-rw-r--r-- | sos/sosreport.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py index 11995ff6..9d01323b 100644 --- a/sos/policies/__init__.py +++ b/sos/policies/__init__.py @@ -176,7 +176,7 @@ No changes will be made to system configuration. """ return False - def preferred_archive_name(self): + def get_preferred_archive(self): """ Return the class object of the prefered archive format for this platform """ diff --git a/sos/sosreport.py b/sos/sosreport.py index 2dac501f..354c147e 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -569,7 +569,7 @@ class SoSReport(object): "auto, zip, bzip2, gzip and xz") archive_name = os.path.join(self.tmpdir,self.policy.get_archive_name()) if self.opts.compression_type == 'auto': - auto_archive = self.policy.preferred_archive_name() + auto_archive = self.policy.get_preferred_archive() self.archive = auto_archive(archive_name, self.tmpdir) elif self.opts.compression_type == 'zip': self.archive = ZipFileArchive(archive_name, self.tmpdir) |