forked from coop-cloud/backup-bot-two
		
	fix download command / dump function
This commit is contained in:
		| @ -521,7 +521,6 @@ def dump(snapshot, path): | |||||||
|             logger.error(f"There is no latest snapshot for {SERVICE}") |             logger.error(f"There is no latest snapshot for {SERVICE}") | ||||||
|             exit(1) |             exit(1) | ||||||
|         snapshot = latest_snapshot[0]['short_id'] |         snapshot = latest_snapshot[0]['short_id'] | ||||||
|     cmd.append(snapshot) |  | ||||||
|     cmd = cmd + [snapshot, path] |     cmd = cmd + [snapshot, path] | ||||||
|     print(f"Dumping {path} from snapshot '{snapshot}'") |     print(f"Dumping {path} from snapshot '{snapshot}'") | ||||||
|     output = subprocess.run(cmd, capture_output=True) |     output = subprocess.run(cmd, capture_output=True) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user