Use OpenStackCloudException when _delete_server() raises

OpenStackException does not exist

Change-Id: I9df905d6630dc7f0d1b3aec6e83c3c2b4d32dc7f
This commit is contained in:
Jon Schlueter 2016-03-23 15:59:40 -04:00
parent a5c3e9cbe7
commit b5e3cd3307
1 changed files with 1 additions and 1 deletions

View File

@ -3704,7 +3704,7 @@ class OpenStackCloud(object):
ips = self.search_floating_ips(filters={
'floating_ip_address': floating_ip})
if len(ips) != 1:
raise OpenStackException(
raise OpenStackCloudException(
"Tried to delete floating ip {floating_ip}"
" associated with server {id} but there was"
" an error finding it. Something is exceptionally"