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/704728 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=e058e381607 e93439a59f47c36 e6a9b7cf61cc71
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit e058e381607e934 39a59f47c36e6a9 b7cf61cc71
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