From f4b3bd5d2c3ea1917c5f216417e267a84c2c23a6 Mon Sep 17 00:00:00 2001 From: "J. Eduardo" Date: Mon, 11 Jun 2018 21:35:33 +0200 Subject: [PATCH] Changed salt.utils.fopen to salt.utils.files.fopen --- tests/unit/modules/test_x509.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/modules/test_x509.py b/tests/unit/modules/test_x509.py index 5bb3b5f93f..1b1ac5c2bc 100644 --- a/tests/unit/modules/test_x509.py +++ b/tests/unit/modules/test_x509.py @@ -36,7 +36,7 @@ from tests.support.mock import ( from salt.modules import x509 import salt.utils.stringutils -import salt.utils +import salt.utils.files try: import M2Crypto # pylint: disable=unused-import @@ -232,7 +232,7 @@ c9bcgp7D7xD+TxWWNj4CSXEccJgGr91StV+gFg4ARQ== days_valid=100, digest='sha512') - with salt.utils.fopen(ca_crl_file.name, 'r') as crl_file: + with salt.utils.files.fopen(ca_crl_file.name, 'r') as crl_file: crl = crl_file.read() os.remove(ca_key_file.name)