From ca6fc69ee8a2b1b13acf7193c3662d250108e981 Mon Sep 17 00:00:00 2001
From: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Date: Sat, 21 Aug 2021 00:32:36 +0200
Subject: [PATCH] docs: adding and removing host: add --all-projects option

When running without that option, the list of servers might be empty,
resulting in leftover instances on the host that is about to be
migrated.

Change-Id: I85915f0f86655f3a1eb5f54911d24e4e0e75f340
---
 doc/source/user/adding-and-removing-hosts.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/source/user/adding-and-removing-hosts.rst b/doc/source/user/adding-and-removing-hosts.rst
index 896445ce31..60fd396d31 100644
--- a/doc/source/user/adding-and-removing-hosts.rst
+++ b/doc/source/user/adding-and-removing-hosts.rst
@@ -194,7 +194,7 @@ If possible, live migrate instances to another host.
 
 .. code-block:: console
 
-   openstack server list --host <host> -f value -c ID | while read server; do
+   openstack server list --all-projects --host <host> -f value -c ID | while read server; do
      openstack server migrate --live-migration $server
    done