dokku / ansible-dokku

Ansible modules for installing and configuring Dokku
MIT License
176 stars 44 forks source link

fix parsing of dokku global-cert:report #73

Closed ltalirz closed 4 years ago

ltalirz commented 4 years ago

fixes #72

Example output:

dokku --quiet global-cert:report
       Global cert dir:     /var/lib/dokku/config/global-cert
       Global cert enabled: false
       Global cert expires at:
       Global cert hostnames:
       Global cert issuer:
       Global cert starts at:
       Global cert subject:
       Global cert verified:

The parsing then tries to extract e.g. the 'enabled', 'expires', ... keys by some searching & replacing. In particular, all spaces are replaced by dashes, so should be the prefix to be removed.