fix the function which checks for a remote repository

This commit is contained in:
Andreas Zweili 2016-12-14 07:59:42 +01:00
parent 22beae53c3
commit 19078abedf
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[DEFAULT]
server: fileserver.2li.local
server: 10.7.89.108
user: borg
repository_path: /home/borg/backup/gwyn
password:
password: 7EMvQ9G4ay7woHXSS5Dt27eZDsnDZu

View File

@ -45,7 +45,7 @@ def configuration():
config.read('borg_interface.cfg')
# assign the repository variable
print(config['DEFAULT']['server'])
if 'server' in config:
if 'server' in config['DEFAULT']:
repository = (config['DEFAULT']['user']
+ "@"
+ config['DEFAULT']['server']