The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/pylxd/pull/72
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Fixes #71
From bb23fa31d4e910a73ca71cf73f4fc6ceb36e73eb Mon Sep 17 00:00:00 2001 From: datashaman <marl...@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."""
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel