fix E121 pep8 errors
Change-Id: I323916512923ae1a9660cec150c4ddb23f99748f
This commit is contained in:
parent
cffde007d0
commit
74cf70838b
3
tox.ini
3
tox.ini
@ -32,7 +32,6 @@ downloadcache = ~/cache/pip
|
|||||||
[flake8]
|
[flake8]
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py
|
||||||
# E121 continuation line indentation is not a multiple of four
|
|
||||||
# E126 continuation line over-indented for hanging indent
|
# E126 continuation line over-indented for hanging indent
|
||||||
# E127 continuation line over-indented for visual indent
|
# E127 continuation line over-indented for visual indent
|
||||||
# E128 continuation line under-indented for visual indent
|
# E128 continuation line under-indented for visual indent
|
||||||
@ -42,4 +41,4 @@ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,p
|
|||||||
# H4xx docstrings
|
# H4xx docstrings
|
||||||
# H701 empty localization string
|
# H701 empty localization string
|
||||||
# H702 Formatting operation should be outside of localization method call
|
# H702 Formatting operation should be outside of localization method call
|
||||||
ignore = E121,E126,E127,E128,F403,F999,H4,H701,H702
|
ignore = E126,E127,E128,F403,F999,H4,H701,H702
|
||||||
|
@ -58,10 +58,12 @@ class FlavorTemplatesFilterAction(tables.FilterAction):
|
|||||||
|
|
||||||
|
|
||||||
class FlavorTemplatesTable(tuskar_tables.DataTable):
|
class FlavorTemplatesTable(tuskar_tables.DataTable):
|
||||||
name = tuskar_tables.Column('name',
|
name = tuskar_tables.Column(
|
||||||
link=("horizon:infrastructure:"
|
'name',
|
||||||
"resource_management:flavor_templates:detail"),
|
link=("horizon:infrastructure:"
|
||||||
verbose_name=_('Flavor Template Name'))
|
"resource_management:flavor_templates:detail"),
|
||||||
|
verbose_name=_('Flavor Template Name')
|
||||||
|
)
|
||||||
cpu = tuskar_tables.Column(
|
cpu = tuskar_tables.Column(
|
||||||
"cpu",
|
"cpu",
|
||||||
verbose_name=_('VCPU'),
|
verbose_name=_('VCPU'),
|
||||||
|
@ -36,9 +36,9 @@ class NodesFilterAction(tables.FilterAction):
|
|||||||
|
|
||||||
class NodesTable(tables.DataTable):
|
class NodesTable(tables.DataTable):
|
||||||
service_host = tables.Column("service_host",
|
service_host = tables.Column("service_host",
|
||||||
link=("horizon:infrastructure:"
|
link=("horizon:infrastructure:"
|
||||||
"resource_management:nodes:detail"),
|
"resource_management:nodes:detail"),
|
||||||
verbose_name=_("Name"))
|
verbose_name=_("Name"))
|
||||||
mac_address = tables.Column("mac_address", verbose_name=_("MAC Address"))
|
mac_address = tables.Column("mac_address", verbose_name=_("MAC Address"))
|
||||||
pm_address = tables.Column("pm_address", verbose_name=_("IP Address"))
|
pm_address = tables.Column("pm_address", verbose_name=_("IP Address"))
|
||||||
status = tables.Column("status",
|
status = tables.Column("status",
|
||||||
|
@ -93,12 +93,12 @@ class RacksTable(tables.DataTable):
|
|||||||
status=True,
|
status=True,
|
||||||
status_choices=STATUS_CHOICES)
|
status_choices=STATUS_CHOICES)
|
||||||
usage = tables.Column(
|
usage = tables.Column(
|
||||||
'vm_capacity',
|
'vm_capacity',
|
||||||
verbose_name=_("Usage"),
|
verbose_name=_("Usage"),
|
||||||
filters=(lambda vm_capacity:
|
filters=(lambda vm_capacity:
|
||||||
(vm_capacity.value and
|
(vm_capacity.value and
|
||||||
"%s %%" % int(round((100 / float(vm_capacity.value)) *
|
"%s %%" % int(round((100 / float(vm_capacity.value)) *
|
||||||
vm_capacity.usage, 0))) or None,))
|
vm_capacity.usage, 0))) or None,))
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
name = "racks"
|
name = "racks"
|
||||||
|
@ -49,7 +49,7 @@ class ResourceClassInfoAndFlavorsAction(workflows.Action):
|
|||||||
required=True,
|
required=True,
|
||||||
choices=[('compute-img', ('overcloud-compute'))],
|
choices=[('compute-img', ('overcloud-compute'))],
|
||||||
widget=forms.Select(
|
widget=forms.Select(
|
||||||
attrs={'class': 'switchable'})
|
attrs={'class': 'switchable'})
|
||||||
)
|
)
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user