[EVO] Ne pas différencier les machines redondées
This commit is contained in:
parent
749fd0b122
commit
864a234a54
@ -24,16 +24,11 @@ show_usage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
move_ct() {
|
move_ct() {
|
||||||
# SI la machine est redondée (nom finissant par un charactère)
|
echo " move: pending"
|
||||||
if [[ "$(lxc list --columns n --format csv $ct | awk '/[0-9][a-z]$/')" == "${ct}" ]]; then
|
lxc move --target $target $ct 2> /dev/null
|
||||||
echo " move: skipped"
|
lxc_move_result=$?
|
||||||
else
|
echo -n " move: "
|
||||||
echo " move: pending"
|
[[ $? -eq 0 ]] && echo "success" || echo "failed"
|
||||||
lxc move --target $target $ct 2> /dev/null
|
|
||||||
lxc_move_result=$?
|
|
||||||
echo -n " move: "
|
|
||||||
[[ $? -eq 0 ]] && echo "success" || echo "failed"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
migrate_ct() {
|
migrate_ct() {
|
||||||
|
Loading…
Reference in New Issue
Block a user