LGTM: Silence unmatchable dollar

Silence false positive "unmatchable dollar in regular expression".

https://pagure.io/freeipa/issue/7344

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
Christian Heimes 2018-01-03 09:59:37 +01:00
parent 6fe3228fb2
commit cae2d99f89

View File

@ -1303,4 +1303,8 @@ def write_certmap_conf(realm, ca_subject):
shutil.copyfile(
os.path.join(paths.USR_SHARE_IPA_DIR, "certmap.conf.template"),
certmap_filename)
installutils.update_file(certmap_filename, '$ISSUER_DN', str(ca_subject))
installutils.update_file(
certmap_filename,
'$ISSUER_DN', # lgtm [py/regex/unmatchable-dollar]
str(ca_subject)
)