If live migrate operation failed, there would be a message like:
'Failed to live migrate instance to host "host01".'
But, if we choose none target host, the message will be:
'Failed to live migrate instance to host "".'
The empty quote marks looks strange.
I think it would be better to check whether data['host'] is
None/empty at first and use a message without hostname if it is.
Reviewed: https:/ /review. openstack. org/458374 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=e7a082d0a28 0706d3a4523b0ba b727d6adf76a97
Committed: https:/
Submitter: Jenkins
Branch: master
commit e7a082d0a280706 d3a4523b0bab727 d6adf76a97
Author: zhangdebo <email address hidden>
Date: Thu Apr 20 00:45:35 2017 -0700
Fix a message bug after a failing live migrate
If live migrate operation failed, there would be a message like:
'Failed to live migrate instance to host "host01".'
But, if we choose none target host, the message will be:
'Failed to live migrate instance to host "".'
The empty quote marks looks strange.
I think it would be better to check whether data['host'] is
None/empty at first and use a message without hostname if it is.
Change-Id: Ib25f2d9481cfe9 a5119d3473ba7ea 8032720f45a
Closes-Bug: #1684394