diff --git a/juju/model.py b/juju/model.py index 45faa99e2..a51944de3 100644 --- a/juju/model.py +++ b/juju/model.py @@ -2704,15 +2704,15 @@ async def update_secret(self, name, data_args=[], new_name="", file="", info="") if result_error.error is not None: raise JujuAPIError(result_error.error) - async def list_secrets(self, filter="", show_secrets=False): + async def list_secrets(self, filter=None, show_secrets=False): """ Returns the list of available secrets. """ facade = client.SecretsFacade.from_connection(self.connection()) - results = await facade.ListSecrets({ - 'filter': filter, - 'show-secrets': show_secrets, - }) + results = await facade.ListSecrets( + filter_=filter, + show_secrets=show_secrets, + ) return results.results async def remove_secret(self, secret_name, revision=-1):