Allow to evacuate without specifying a target host
When the evacuate is run without specifying a target host, horizon
sets an empty string for target host. But the evacuate api doesn't
allow an empty string. As a result, nova returns "HTTP 400 Bad
request".
So this patch sets None as the target host when it isn't specified.
Change-Id: Ia865a6c02e206fa49efc3095e8d3488f5638d0e3
Closes-Bug: 1793694
(cherry picked from commit f9e0f8a976b82088ef095a69cd1fa892cddde3ba)
Reviewed: https:/ /review. opendev. org/704727 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=42d9a8d2e87 36c5a8e94eaf707 4755a1add3922b
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 42d9a8d2e8736c5 a8e94eaf7074755 a1add3922b
Author: Rikimaru Honjo <email address hidden>
Date: Wed Jan 15 10:48:14 2020 +0000
Allow to evacuate without specifying a target host
When the evacuate is run without specifying a target host, horizon
sets an empty string for target host. But the evacuate api doesn't
allow an empty string. As a result, nova returns "HTTP 400 Bad
request".
So this patch sets None as the target host when it isn't specified.
Change-Id: Ia865a6c02e206f a49efc3095e8d34 88f5638d0e3 8ef095a69cd1fa8 92cddde3ba)
Closes-Bug: 1793694
(cherry picked from commit f9e0f8a976b8208