Change message from Warning to Error message

Message being changed is "Unable to retrieve floating IP pools"

Change-Id: Iccfcb623a81d5f1306db97cb399d9bc246bed211
Closes-bug: 1356493
This commit is contained in:
Bradley Jones 2014-08-14 18:44:43 +01:00
parent 9498ca10fb
commit b15a592df2
1 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@
from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import messages
from horizon import tabs
from openstack_dashboard.api import keystone
@ -90,7 +89,7 @@ class FloatingIPsTab(tabs.TableTab):
floating_ip_pools = network.floating_ip_pools_list(self.request)
except Exception:
floating_ip_pools = []
messages.warning(self.request,
exceptions.handle(self.request,
_('Unable to retrieve floating IP pools.'))
pool_dict = dict([(obj.id, obj.name) for obj in floating_ip_pools])