Blame SOURCES/sos-bz1463509-oc-adm-diagnostics.patch

8b0807
From 30285352cad7b393c67a7c7c64a6fce902190bef Mon Sep 17 00:00:00 2001
8b0807
From: Pavel Moravec <pmoravec@redhat.com>
8b0807
Date: Thu, 16 Nov 2017 16:51:40 +0100
8b0807
Subject: [PATCH] [origin] fix typo in oc adm diagnostics
8b0807
 --prevent-modification
8b0807
8b0807
The argument is singular --prevent-modification .
8b0807
8b0807
Resolves: #1150
8b0807
8b0807
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
8b0807
---
8b0807
 sos/plugins/origin.py | 4 ++--
8b0807
 1 file changed, 2 insertions(+), 2 deletions(-)
8b0807
8b0807
diff --git a/sos/plugins/origin.py b/sos/plugins/origin.py
8b0807
index d7ba0817..4e50bdee 100644
8b0807
--- a/sos/plugins/origin.py
8b0807
+++ b/sos/plugins/origin.py
8b0807
@@ -48,7 +48,7 @@ class OpenShiftOrigin(Plugin):
8b0807
     option_list = [
8b0807
         ("diag", "run 'oc adm diagnostics' to collect its output",
8b0807
          'fast', True),
8b0807
-        ("diag-prevent", "set --prevent-modifications on 'oc adm diagnostics'",
8b0807
+        ("diag-prevent", "set --prevent-modification on 'oc adm diagnostics'",
8b0807
          'fast', False),
8b0807
     ]
8b0807
 
8b0807
@@ -137,7 +137,7 @@ class OpenShiftOrigin(Plugin):
8b0807
             if self.get_option('diag'):
8b0807
                 diag_cmd = "%s adm diagnostics -l 0" % self.oc_cmd_admin
8b0807
                 if self.get_option('diag-prevent'):
8b0807
-                    diag_cmd += " --prevent-modifications=true"
8b0807
+                    diag_cmd += " --prevent-modification=true"
8b0807
                 self.add_cmd_output(diag_cmd)
8b0807
             self.add_journal(units=["atomic-openshift-master",
8b0807
                                     "atomic-openshift-master-api",
8b0807
-- 
8b0807
2.13.6
8b0807