the check for status.status should happen before trying to log it
the check for status.status should happen before trying to log it

otherwise, if status.status is None, status.status.api_status will throw
a TypeError

Closes-Bug: #1287097
Change-Id: I62dafed59dcf8850808b22b8977d346607176403

zhujzhuo/openstack-trove,fabian4/trove,redhat-openstack/trove,cp16net/trove,zhujzhuo/openstack-trove,changsimon/trove,hplustree/trove,hplustree/trove,changsimon/trove,redhat-openstack/trove,zhangg/trove,openstack/trove,cp16net/trove,fabian4/trove,mmasaki/trove,mmasaki/trove,zhujzhuo/openstack-trove,zhangg/trove,mmasaki/trove,redhat-openstack/trove,fabian4/trove,changsimon/trove,openstack/trove,cp16net/trove