From 85a79b5ccd29a532f7e3f0f17b9ba08153bf9717 Mon Sep 17 00:00:00 2001 From: Martin Babinsky Date: Jul 04 2017 07:48:04 +0000 Subject: Fix indentation of statements in Smart card advises https://pagure.io/freeipa/issue/7036 Reviewed-By: Florence Blanc-Renaud Reviewed-By: Alexander Bokovoy --- diff --git a/ipaserver/advise/plugins/smart_card_auth.py b/ipaserver/advise/plugins/smart_card_auth.py index 75efa6f..138a443 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}") ] )