Fix pep8 errors in source code

Change-Id: Ia9d9d224adebd62d19f91fbd7aa52a1201e7b909
This commit is contained in:
Yang Li 2016-01-20 16:33:21 +08:00
parent 64a54c2598
commit 7ef078cb2c
5 changed files with 6 additions and 9 deletions

View File

@ -25,7 +25,7 @@ SEARCH_DIRS = ['/etc/astara', '/etc/akanda-rug', '/etc/akanda']
LEGACY_FILE_MAP = {
'orchestrator.ini': 'rug.ini',
'astara.pub': 'akanda.pub'
}
}
DEFAULT_CONFIG_FILES = [
PREFERRED_CONFIG_FILEPATH

View File

@ -151,9 +151,8 @@ class MetadataProxyHandler(object):
elif resp.status == 404:
return webob.exc.HTTPNotFound()
elif resp.status == 500:
msg = _LW(
'Remote metadata server experienced an internal server error.'
)
msg = _LW('Remote metadata server experienced an'
' internal server error.')
LOG.warning(msg)
return webob.exc.HTTPInternalServerError(explanation=unicode(msg))
else:

View File

@ -44,7 +44,7 @@ def list_opts():
astara.metadata.METADATA_OPTS,
astara.health.HEALTH_INSPECTOR_OPTS,
astara.instance_manager.INSTANCE_MANAGER_OPTS
))
))
]

View File

@ -62,8 +62,7 @@ class TestAstaraClient(unittest.TestCase):
'dns_nameservers': [],
'host_routes': [],
'gateway_ip': '10.0.0.1',
},
],
}, ],
'allocations': []}
]

View File

@ -64,8 +64,7 @@ def fake_loadbalancer():
{'ip_address': '192.168.0.132',
'subnet_id': u'8c58b558-be54-45de-9873-169fe845bb80'},
{'ip_address': 'fdd6:a1fa:cfa8:6af6:f816:3eff:feff:327c',
'subnet_id': u'89fe7a9d-be92-469c-9a1e-503a39462ed1'}]
}
'subnet_id': u'89fe7a9d-be92-469c-9a1e-503a39462ed1'}]}
}
return neutron.LoadBalancer.from_dict(lb_dict)