[lxc-devel] [pylxd/master] Fix change of behaviour on execute introduced in #363
ajkavanagh on Github
lxc-bot at linuxcontainers.org
Fri May 17 17:30:17 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 546 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190517/c07e32b5/attachment.bin>
-------------- next part --------------
From f99f6c63454fb2deaaeeab065658978379c248d7 Mon Sep 17 00:00:00 2001
From: Alex Kavanagh <alex.kavanagh at canonical.com>
Date: Fri, 17 May 2019 18:27:49 +0100
Subject: [PATCH] Fix change of behaviour on execute introduced in #363
Essentially, the behavior changed for when a caller to the
container's execute method wished to handle the packets received back on
the websocket. This change fixes the reversion.
Signed-off-by: Alex Kavanagh <alex.kavanagh at canonical.com>
---
pylxd/models/container.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pylxd/models/container.py b/pylxd/models/container.py
index 4c4f91e3..d13c26a5 100644
--- a/pylxd/models/container.py
+++ b/pylxd/models/container.py
@@ -641,7 +641,7 @@ def received_message(self, message):
self.last_message_empty = True
if self.finish_off:
self.finished = True
- return
+ return
else:
self.last_message_empty = False
if message.encoding and self.message_encoding is None:
More information about the lxc-devel
mailing list