The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4549

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) ===
Signed-off-by: Stéphane Graber <[email protected]>
From 8363227430ad440f7a43359294c4f44eae33082b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <[email protected]>
Date: Wed, 9 May 2018 10:48:33 -0400
Subject: [PATCH] lxc/action: Fix pause
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <[email protected]>
---
 lxc/action.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lxc/action.go b/lxc/action.go
index 965361286..fd16c82d2 100644
--- a/lxc/action.go
+++ b/lxc/action.go
@@ -127,6 +127,11 @@ func (c *cmdAction) Command(action string) *cobra.Command {
 func (c *cmdAction) doAction(action string, conf *config.Config, nameArg 
string) error {
        state := false
 
+       // Pause is called freeze
+       if action == "pause" {
+               action = "freeze"
+       }
+
        // Only store state if asked to
        if action == "stop" && c.flagStateful {
                state = true
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to