483b06
From 5bf0faed2a4692d5ce2747c5036d3fca8b0f7b04 Mon Sep 17 00:00:00 2001
483b06
From: Martin Babinsky <mbabinsk@redhat.com>
483b06
Date: Thu, 22 Jun 2017 15:03:45 +0200
483b06
Subject: [PATCH] Fix indentation of statements in Smart card advises
483b06
483b06
https://pagure.io/freeipa/issue/7036
483b06
483b06
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
483b06
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
483b06
---
483b06
 ipaserver/advise/plugins/smart_card_auth.py | 4 ++--
483b06
 1 file changed, 2 insertions(+), 2 deletions(-)
483b06
483b06
diff --git a/ipaserver/advise/plugins/smart_card_auth.py b/ipaserver/advise/plugins/smart_card_auth.py
483b06
index 75efa6f854acd5f746111ea44957a538117381ae..138a44316473f6b504a44a1b68d01fa4d5a58308 100644
483b06
--- a/ipaserver/advise/plugins/smart_card_auth.py
483b06
+++ b/ipaserver/advise/plugins/smart_card_auth.py
483b06
@@ -165,13 +165,13 @@ class config_server_for_smart_card_auth(common_smart_card_auth_config):
483b06
             predicate,
483b06
             [
483b06
                 self._interpolate_ocsp_directive_file_into_command(
483b06
-                    "  sed -i.ipabkp -r "
483b06
+                    "sed -i.ipabkp -r "
483b06
                     "'s/^#*[[:space:]]*{directive}[[:space:]]+(on|off)$"
483b06
                     "/{directive} on/' {filename}")
483b06
             ],
483b06
             commands_to_run_when_false=[
483b06
                 self._interpolate_ocsp_directive_file_into_command(
483b06
-                    "  sed -i.ipabkp '/<\/VirtualHost>/i {directive} on' "
483b06
+                    "sed -i.ipabkp '/<\/VirtualHost>/i {directive} on' "
483b06
                     "{filename}")
483b06
             ]
483b06
         )
483b06
-- 
483b06
2.9.4
483b06