Skip to content

Commit

Permalink
Linting. (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Feb 11, 2021
1 parent c20553c commit ea889ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions plugins/modules/acme_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,8 +1153,7 @@ def _append_all_chains(cert_data):

if cert['cert'] is not None:
pem_cert = cert['cert']

chain = [link for link in cert.get('chain', [])]
chain = list(cert.get('chain', []))

if self.dest and write_file(self.module, self.dest, pem_cert.encode('utf8')):
self.cert_days = get_cert_days(self.module, self.dest)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/plugins/module_utils/crypto/test_asn1.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_pack_asn_invalid_class():
@pytest.mark.parametrize('value, expected', TEST_CASES)
def test_test_cases(value, expected, tmp_path):
test_file = tmp_path / 'test.der'
subprocess.run(['openssl', 'asn1parse', '-genstr', value, '-noout', '-out', test_file])
subprocess.run(['openssl', 'asn1parse', '-genstr', value, '-noout', '-out', test_file], check=True)

with open(test_file, mode='rb') as fd:
b_data = fd.read()
Expand Down

0 comments on commit ea889ce

Please sign in to comment.