From b6b4a0f7a8230b6e7add4dd65f9f7234b0499f03 Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Sun, 10 Sep 2023 15:29:46 +0200 Subject: [PATCH] =?UTF-8?q?[FIX]=20G=C3=A9rer=20les=20machines=20redond?= =?UTF-8?q?=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- balance-containers/run.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/balance-containers/run.bash b/balance-containers/run.bash index a547d78..319307a 100755 --- a/balance-containers/run.bash +++ b/balance-containers/run.bash @@ -25,7 +25,7 @@ show_usage() { move_ct() { # SI la machine est redondée (nom finissant par un charactère) - if [[ "$(lxc list --columns Ln --format csv $ct | awk '/[0-9][a-z]$/')" == "${ct}" ]]; then + if [[ "$(lxc list --columns n --format csv $ct | awk '/[0-9][a-z]$/')" == "${ct}" ]]; then echo " move: skipped" else echo " move: pending"