Fixed Popen communication

backups-fix
Illia Chub 2021-10-25 21:18:52 +03:00
parent e6ef9be267
commit b7c8bade4c
No known key found for this signature in database
GPG Key ID: 5D3581534C02467A
1 changed files with 2 additions and 2 deletions

View File

@ -483,9 +483,9 @@ def ListAllBackups():
"snapshots", "--password-file", "/var/lib/restic/rpass", "--json"
], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
backupListingProcessDescriptor.communicate()[0]
snapshotsList = backupListingProcessDescriptor.communicate()[0]
return backupListingProcessDescriptor
return snapshotsList