From c94da43a8069e281b444c7517a7f29b6d6a00f91 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 9 May 2021 03:27:34 +0200 Subject: [PATCH] Fix BorgBase repository creation (#66) --- library/borgbase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/borgbase.py b/library/borgbase.py index 47ba076..e8df03d 100644 --- a/library/borgbase.py +++ b/library/borgbase.py @@ -181,10 +181,11 @@ def main(): if repo_id is None: # Add new repo using the key res = add_repo(key_id) - + repo_exist = False else: # Edit the repo res = edit_repo(repo_id, key_id) + repo_exist = True # Setup information for Ansible result = dict(