diff options
-rw-r--r-- | sos/report/plugins/ostree.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sos/report/plugins/ostree.py b/sos/report/plugins/ostree.py index 5d11d888..a920c64e 100644 --- a/sos/report/plugins/ostree.py +++ b/sos/report/plugins/ostree.py @@ -6,7 +6,7 @@ # # See the LICENSE file in the source distribution for further information. -from sos.report.plugins import Plugin, IndependentPlugin +from sos.report.plugins import Plugin, IndependentPlugin, PluginOpt class OSTree(Plugin, IndependentPlugin): @@ -17,6 +17,9 @@ class OSTree(Plugin, IndependentPlugin): profiles = ('system', 'sysmgmt', 'packagemanager') files = ('/ostree',) services = ('ostree-finalize-staged', 'ostree-boot-complete') + option_list = [ + PluginOpt('fsck', default=False, desc='collect ostree fsck') + ] def setup(self): self.add_copy_spec("/ostree/repo/config") @@ -25,7 +28,7 @@ class OSTree(Plugin, IndependentPlugin): "ostree admin config-diff", "ostree refs", ]) - if self.get_option("verify"): + if self.get_option("fsck"): self.add_cmd_output("ostree fsck") # vim: set et ts=4 sw=4 : |