Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Feb 7, 2021
1 parent 9142f8a commit 283a061
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions plugins/module_utils/acme/acme.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

import copy
import datetime
import hashlib
import json
import locale

from ansible.module_utils.basic import missing_required_lib
Expand Down Expand Up @@ -186,7 +184,7 @@ def _log(self, msg, data=None):
with open('acme.log', 'ab') as f:
f.write('[{0}] {1}\n'.format(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%s'), msg).encode('utf-8'))
if data is not None:
f.write('{0}\n\n'.format(json.dumps(data, indent=2, sort_keys=True)).encode('utf-8'))
f.write('{0}\n\n'.format(self.module.jsonify(data, indent=2, sort_keys=True)).encode('utf-8'))

def send_signed_request(self, url, payload, key_data=None, jws_header=None, parse_json_result=True,
encode_payload=True, fail_on_error=True, error_msg=None, expected_status_codes=None):
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/acme_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@
)

from ansible_collections.community.crypto.plugins.module_utils.acme.errors import (
ACMEProtocolException,
ModuleFailException,
KeyParsingError,
)
Expand Down

0 comments on commit 283a061

Please sign in to comment.