[lxc-devel] [pylxd/master] Container methods fixed for freeze, unfreeze and restart
datashaman on Github
lxc-bot at linuxcontainers.org
Sun Apr 3 08:26:30 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 310 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160403/6da1d6ce/attachment.bin>
-------------- next part --------------
From bb23fa31d4e910a73ca71cf73f4fc6ceb36e73eb Mon Sep 17 00:00:00 2001
From: datashaman <marlinf at datashaman.com>
Date: Sun, 3 Apr 2016 10:24:59 +0200
Subject: [PATCH] Container methods fixed for freeze, unfreeze and restart
Fixes #71
---
pylxd/container.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pylxd/container.py b/pylxd/container.py
index f17e4ad..c191bbe 100644
--- a/pylxd/container.py
+++ b/pylxd/container.py
@@ -139,15 +139,15 @@ def stop(self, timeout=30, force=True, wait=False):
def restart(self, timeout=30, force=True, wait=False):
"""Restart the container."""
- return self._set_state('stop', timeout=timeout, force=force, wait=wait)
+ return self._set_state('restart', timeout=timeout, force=force, wait=wait)
def freeze(self, timeout=30, force=True, wait=False):
"""Freeze the container."""
- return self._set_state('stop', timeout=timeout, force=force, wait=wait)
+ return self._set_state('freeze', timeout=timeout, force=force, wait=wait)
def unfreeze(self, timeout=30, force=True, wait=False):
"""Unfreeze the container."""
- return self._set_state('stop', timeout=timeout, force=force, wait=wait)
+ return self._set_state('unfreeze', timeout=timeout, force=force, wait=wait)
def snapshot(self, name, stateful=False, wait=False):
"""Take a snapshot of the container."""
More information about the lxc-devel
mailing list