Merge "Handle NotFoundException when listing floating IPs"
This commit is contained in:
commit
31251e33ec
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
"""IP Floating action implementations"""
|
"""IP Floating action implementations"""
|
||||||
|
|
||||||
|
from openstack import exceptions as sdk_exceptions
|
||||||
from osc_lib import utils
|
from osc_lib import utils
|
||||||
from osc_lib.utils import tags as _tag
|
from osc_lib.utils import tags as _tag
|
||||||
|
|
||||||
@ -390,7 +391,10 @@ class ListFloatingIP(common.NetworkAndComputeLister):
|
|||||||
|
|
||||||
_tag.get_tag_filtering_args(parsed_args, query)
|
_tag.get_tag_filtering_args(parsed_args, query)
|
||||||
|
|
||||||
data = client.ips(**query)
|
try:
|
||||||
|
data = list(client.ips(**query))
|
||||||
|
except sdk_exceptions.NotFoundException:
|
||||||
|
data = []
|
||||||
|
|
||||||
return (
|
return (
|
||||||
headers,
|
headers,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user