danb35 / deploy-freenas

Python script to automate deploying TLS certificates to FreeNAS servers
GNU General Public License v3.0
202 stars 56 forks source link

Deletion of old cert fails #65

Closed Tuckie closed 1 year ago

Tuckie commented 1 year ago

Minor typo, but as a result, old certs will never be deleted.

The double quotes should be removed around CERT_BASE_NAME

      if cert_data['name'].startswith("CERT_BASE_NAME"):

https://github.com/danb35/deploy-freenas/blob/master/deploy_freenas.py#L216

adorobis commented 1 year ago

Many thanks for spotting that. Fix has been provided.