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