Comment 4 for bug 1684394

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/458374
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=e7a082d0a280706d3a4523b0bab727d6adf76a97
Submitter: Jenkins
Branch: master

commit e7a082d0a280706d3a4523b0bab727d6adf76a97
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: Ib25f2d9481cfe9a5119d3473ba7ea8032720f45a
    Closes-Bug: #1684394