Skip to content

Commit

Permalink
Implement remove password for kwallet
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrevadi committed Mar 12, 2023
1 parent 6afdbbc commit cfd0ebf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vorta/keyring/kwallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def get_password(self, service, repo_url):
return password

def remove_password(self, service, repo_url):
if self.is_unlocked and self.get_result("hasEntry", args=[self.handle, self.folder_name, repo_url, service]):
self.get_result("removeEntry", args=[self.handle, self.folder_name, repo_url, service])
entry = [self.handle, self.folder_name, repo_url, service]
if self.is_unlocked and self.get_result("hasEntry", args=entry):
self.get_result("removeEntry", args=entry)
logger.debug(f"Removed password for repo {repo_url}")

def get_result(self, method, args=[]):
Expand Down

0 comments on commit cfd0ebf

Please sign in to comment.