1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B OpenNebula/one#6472: Fix for incorrect filtering in the CLI (#2952)

of remove_off_hosts

Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit b852f637c5e306842887cd3d1b62ad5e2cf9a6e4)
This commit is contained in:
MarioRobres 2024-02-28 19:58:02 +01:00 committed by Tino Vázquez
parent 92a5df84d8
commit 1f6582fc25
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -482,7 +482,7 @@ function check_restricted {
#-------------------------------------------------------------------------------
function remove_off_hosts {
ALL_HOSTS_ARRAY=($1)
OFF_HOSTS_STR=$(onehost list --no-pager --csv \
OFF_HOSTS_STR=$(onehost list --operator OR --no-pager --csv \
--filter="STAT=off,STAT=err,STAT=dsbl" --list=NAME,STAT 2>/dev/null)
if [ $? -eq 0 ]; then