From 6475433673de52156042f07047b77dbcc67561b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Dunand?= Date: Mon, 14 May 2018 15:57:43 +0200 Subject: [PATCH] Fix rescue/unrescue command TQL filter --- cloudcontrol/cli/commands/vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudcontrol/cli/commands/vm.py b/cloudcontrol/cli/commands/vm.py index f7d2961..d9fdb2e 100644 --- a/cloudcontrol/cli/commands/vm.py +++ b/cloudcontrol/cli/commands/vm.py @@ -300,7 +300,7 @@ class Command_rescue(TqlCommand): def __init__(self, cli, argv0): TqlCommand.__init__(self, cli, argv0) - self.tql_filter += "&r=vm&status=stopped&rescue=no" + self.tql_filter += "&r=vm&status=stopped&mode=normal" def __call__(self, argv): # arg parse @@ -318,7 +318,7 @@ class Command_unrescue(TqlCommand): def __init__(self, cli, argv0): TqlCommand.__init__(self, cli, argv0) - self.tql_filter += "&r=vm&status=stopped&rescue=yes" + self.tql_filter += "&r=vm&status=stopped&mode=rescue" def __call__(self, argv): # arg parse -- GitLab