diff --git a/balance-containers/run.bash b/balance-containers/run.bash index c645924..ea955f1 100755 --- a/balance-containers/run.bash +++ b/balance-containers/run.bash @@ -24,16 +24,11 @@ show_usage() { } move_ct() { - # SI la machine est redondée (nom finissant par un charactère) - if [[ "$(lxc list --columns n --format csv $ct | awk '/[0-9][a-z]$/')" == "${ct}" ]]; then - echo " move: skipped" - else - echo " move: pending" - lxc move --target $target $ct 2> /dev/null - lxc_move_result=$? - echo -n " move: " - [[ $? -eq 0 ]] && echo "success" || echo "failed" - fi + echo " move: pending" + lxc move --target $target $ct 2> /dev/null + lxc_move_result=$? + echo -n " move: " + [[ $? -eq 0 ]] && echo "success" || echo "failed" } migrate_ct() {