Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pylxd/models/certificate: re-add password arg for backward compat
Fixes canonical/charm-lxd#168 where charm-lxd is calling certificates.create(): ```python config: Dict[str, Union[str, bytes, List[str], bool]] = { "name": name, "password": "", "cert_data": cert.encode(), } client.certificates.create(**config) ``` causing: ``` File "./src/charm.py", line 1139, in _on_https_relation_changed if self.lxd_trust_add(cert=cert, name=cert_name, projects=projects): File "./src/charm.py", line 2294, in lxd_trust_add client.certificates.create(**config) TypeError: create() got an unexpected keyword argument 'password' ``` Signed-off-by: Simon Deziel <[email protected]>
- Loading branch information