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"