From bba1edb0704722dce80a4d8d14c026524819819e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Mon, 1 May 2017 16:57:43 +0000 Subject: [PATCH] tests: Lazier const import to prevent early FQDN lookup --- certidude/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certidude/helpers.py b/certidude/helpers.py index 0aa69ed..d96b72e 100644 --- a/certidude/helpers.py +++ b/certidude/helpers.py @@ -5,7 +5,6 @@ import subprocess import tempfile from base64 import b64encode from datetime import datetime, timedelta -from certidude import errors, const from configparser import ConfigParser def selinux_fixup(path): @@ -22,6 +21,7 @@ def certidude_request_certificate(server, system_keytab_required, key_path, requ Exchange CSR for certificate using Certidude HTTP API server """ import requests + from certidude import errors, const from cryptography import x509 from cryptography.hazmat.primitives.asymmetric import rsa, padding from cryptography.hazmat.backends import default_backend