Skip to content

Commit

Permalink
Add space between arguments for acme-tiny (ansible#36739)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mscherer authored and ansibot committed Feb 26, 2018
1 parent ff0f628 commit eb162bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/crypto/openssl_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def generate(self, module):
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,
Expand Down

0 comments on commit eb162bd

Please sign in to comment.