Changed salt.utils.fopen to salt.utils.files.fopen

This commit is contained in:
J. Eduardo 2018-06-11 21:35:33 +02:00 committed by rallytime
parent 8686872909
commit f4b3bd5d2c
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -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)