1
0

[FIX] Gérer les machines redondées

This commit is contained in:
pulsar89.5 2023-09-10 15:29:46 +02:00
parent 27dfb6f12d
commit b6b4a0f7a8

View File

@ -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"