mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix imports and pep8 problems so CI can pass again.
This commit is contained in:
parent
3537b24742
commit
dcc63c8f93
1 changed files with 10 additions and 9 deletions
|
@ -162,7 +162,8 @@ subjectAltName:
|
|||
sample: 'DNS:www.ansible.com,DNS:m.ansible.com'
|
||||
'''
|
||||
|
||||
from ansible.module_utils.basic import *
|
||||
import errno
|
||||
import os
|
||||
|
||||
try:
|
||||
from OpenSSL import crypto
|
||||
|
@ -171,12 +172,14 @@ except ImportError:
|
|||
else:
|
||||
pyopenssl_found = True
|
||||
|
||||
import os
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.pycompat24 import get_exception
|
||||
|
||||
|
||||
class CertificateSigningRequestError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class CertificateSigningRequest(object):
|
||||
|
||||
def __init__(self, module):
|
||||
|
@ -243,7 +246,6 @@ class CertificateSigningRequest(object):
|
|||
if module.set_fs_attributes_if_different(file_args, False):
|
||||
self.changed = True
|
||||
|
||||
|
||||
def remove(self):
|
||||
'''Remove the Certificate Signing Request.'''
|
||||
|
||||
|
@ -256,7 +258,6 @@ class CertificateSigningRequest(object):
|
|||
else:
|
||||
self.changed = False
|
||||
|
||||
|
||||
def dump(self):
|
||||
'''Serialize the object into a dictionnary.'''
|
||||
|
||||
|
|
Loading…
Reference in a new issue