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.
Reviewed: https:/ /review. opendev. org/702642 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=f9e0f8a976b 82088ef095a69cd 1fa892cddde3ba
Committed: https:/
Submitter: Zuul
Branch: master
commit f9e0f8a976b8208 8ef095a69cd1fa8 92cddde3ba
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
Closes-Bug: 1793694