From 2574f4dac56b04c2662edfd0fcaf594fe06de58b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 28 Jun 2019 21:10:58 +0200 Subject: [PATCH] fix preloading for old remote servers, fixes #4652 if the remote server does not support the dict-based argument passing yet (e.g. when accidentally using borg 0.29 on rsync.net), the GET rpc call argument list failed to generate if the command currently being processed was not a GET also. note: rsync.net has a more recent borg as "borg1". --- src/borg/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/remote.py b/src/borg/remote.py index 807c27d35..dab5ef039 100644 --- a/src/borg/remote.py +++ b/src/borg/remote.py @@ -880,7 +880,7 @@ This problem will go away as soon as the server has been upgraded to 1.0.7+. if self.dictFormat: self.to_send = msgpack.packb({MSGID: self.msgid, MSG: 'get', ARGS: args}) else: - self.to_send = msgpack.packb((1, self.msgid, 'get', self.named_to_positional(cmd, args))) + self.to_send = msgpack.packb((1, self.msgid, 'get', self.named_to_positional('get', args))) if self.to_send: try: