Add space between arguments for acme-tiny (#36739) (#39018)

Currently, the module fail with a error saying that --acme-dir is mandatory.
Looking at the commandline:

    /usr/sbin/acme-tiny --chain --account-key /srv/letsencrypt/acme_key/acme.key
    --csr /srv/letsencrypt/nginx_certs/www.example.org.csr--acme-dir /srv/letsencrypt/webroot",

We can see that the space before --acme-dir is missing.
pull/39564/head
Yanis Guenane 7 years ago committed by John R Barker
parent 543097c315
commit eb77afe4de

@ -0,0 +1,2 @@
bugfixes:
- openssl-certificate - Add space between arguments for acme-tiny (https://github.com/ansible/ansible/pull/36739)

@ -771,7 +771,7 @@ class AcmeCertificate(Certificate):
chain = '--chain'
try:
crt = module.run_command("%s %s --account-key %s --csr %s"
crt = module.run_command("%s %s --account-key %s --csr %s "
"--acme-dir %s" % (acme_tiny_path, chain,
self.accountkey_path,
self.csr_path,

Loading…
Cancel
Save