diff --git a/tools/discover_hosts.sh b/tools/discover_hosts.sh index 65966c3d04..4ec6a40511 100755 --- a/tools/discover_hosts.sh +++ b/tools/discover_hosts.sh @@ -15,4 +15,6 @@ # In other words this should be run on the primary # (API) node in a multi-node setup. -nova-manage cell_v2 discover_hosts --verbose +if [[ -x $(which nova-manage) ]]; then + nova-manage cell_v2 discover_hosts --verbose +fi