Fix pep8 errors

Change-Id: I5f7ee36743f9476580dccf8f52aa097329316d67
This commit is contained in:
Kenji Ishii 2016-09-09 11:52:09 +09:00
parent 74342999ed
commit dc15e9d0d8
3 changed files with 12 additions and 9 deletions

View File

@ -17,7 +17,7 @@ import logging
from horizon import exceptions
from horizon.utils.memoized import memoized
from openstack_dashboard.api import base
# from openstack_dashboard.api import base
# for stab, should remove when use CLI API
import copy
@ -30,6 +30,7 @@ CONTAINER_CREATE_ATTRS = ['name']
STUB_DATA = {}
# for stab, should be removed when use CLI API
class StubResponse(object):
@ -47,8 +48,9 @@ class StubResponse(object):
@memoized
def zunclient(request):
zun_url = ""
pass
""""
zun_url = ""
try:
zun_url = base.url_for(request, 'container')
except exceptions.ServiceCatalogException:

View File

@ -17,6 +17,7 @@ import horizon
# To register REST api, import below here.
from zun_ui.api import rest_api # noqa
class Containers(horizon.Panel):
name = _("Containers")
slug = "container.containers"

View File

@ -20,9 +20,9 @@ HORIZON_CONFIG.pop('dashboards', None)
HORIZON_CONFIG.pop('default_dashboard', None)
# Update the dashboards with zun_ui
import zun_ui.enabled
import openstack_dashboard.enabled
from openstack_dashboard.utils import settings
import zun_ui.enabled
settings.update_dashboards(
[