diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2018-05-27 09:10:12 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-20 18:01:21 +0100 |
commit | 464b26e42bee5cbade7b0df0b93aea7d26078a92 (patch) | |
tree | e3c2c92ac0cfaa30cb81254440e01dc8d1b854d1 /sos.conf | |
parent | 5ebe80605ead91b448a4731881d618ed334c6e77 (diff) | |
download | sos-464b26e42bee5cbade7b0df0b93aea7d26078a92.tar.gz |
[sos] replace hard-coded format tuple with list comprehension
Instead of hard-coding a tuple for every member of SoSOptions
(% (self.foo, self.bar, ...)), use a list comprehension on the
existing _arg_names list to obtain the attribute values via
getattr(). This avoids the need to maintain the tuple manually
as options are added or removed.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sos.conf')
0 files changed, 0 insertions, 0 deletions