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:
parent
92a5df84d8
commit
1f6582fc25
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user