pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0213-Fix-indentation-of-statements-in-Smart-card-advises.patch

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