diff options
author | David Shrewsbury <shrewsbury.dave@gmail.com> | 2014-10-14 14:33:12 -0400 |
---|---|---|
committer | David Shrewsbury <shrewsbury.dave@gmail.com> | 2014-10-14 14:36:26 -0400 |
commit | 3e26f519f6be381271dbca7bf3812e648a76a80d (patch) | |
tree | 8206dd81c60ebbd7fcd46a1a31a205103e890a82 /ironic/drivers/modules/snmp.py | |
parent | 4589ba37077687bff3dee2ee4e0a4f340282dc48 (diff) | |
download | ironic-3e26f519f6be381271dbca7bf3812e648a76a80d.tar.gz |
Fix E131 PEP8 errors
Fixes files with the following error:
E131 continuation line unaligned for hanging indent
and enables the check in tox.ini.
Also enables the E113 check (unexpected indentation) since it seems
that was fixed coincidentally with other previous changes.
Change-Id: I9270e5df257e12dc903689d8eb6fb03be01c034b
Diffstat (limited to 'ironic/drivers/modules/snmp.py')
-rw-r--r-- | ironic/drivers/modules/snmp.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/ironic/drivers/modules/snmp.py b/ironic/drivers/modules/snmp.py index 8be3f908e..340d34c1c 100644 --- a/ironic/drivers/modules/snmp.py +++ b/ironic/drivers/modules/snmp.py @@ -75,15 +75,18 @@ REQUIRED_PROPERTIES = { 'snmp_outlet': _("PDU power outlet index (1-based). Required."), } OPTIONAL_PROPERTIES = { - 'snmp_version': _("SNMP protocol version: %(v1)s, %(v2c)s, %(v3)s " - "(optional, default %(v1)s)") - % {"v1": SNMP_V1, "v2c": SNMP_V2C, "v3": SNMP_V3}, - 'snmp_port': _("SNMP port, default %(port)d") % {"port": SNMP_PORT}, - 'snmp_community': _("SNMP community. Required for versions %(v1)s, " - "%(v2c)s") - % {"v1": SNMP_V1, "v2c": SNMP_V2C}, - 'snmp_security': _("SNMP security name. Required for version %(v3)s") - % {"v3": SNMP_V3}, + 'snmp_version': + _("SNMP protocol version: %(v1)s, %(v2c)s, %(v3)s " + "(optional, default %(v1)s)") + % {"v1": SNMP_V1, "v2c": SNMP_V2C, "v3": SNMP_V3}, + 'snmp_port': + _("SNMP port, default %(port)d") % {"port": SNMP_PORT}, + 'snmp_community': + _("SNMP community. Required for versions %(v1)s, %(v2c)s") + % {"v1": SNMP_V1, "v2c": SNMP_V2C}, + 'snmp_security': + _("SNMP security name. Required for version %(v3)s") + % {"v3": SNMP_V3}, } COMMON_PROPERTIES = REQUIRED_PROPERTIES.copy() COMMON_PROPERTIES.update(OPTIONAL_PROPERTIES) |