[FIX] Gérer les machines redondées
This commit is contained in:
parent
27dfb6f12d
commit
b6b4a0f7a8
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user