diff options
author | Sam Betts <sam@code-smash.net> | 2015-05-28 16:54:36 +0100 |
---|---|---|
committer | Sam Betts <sam@code-smash.net> | 2015-06-04 12:56:51 +0100 |
commit | 8c07c4fda3e6a86a40aa00759652b99acbd73331 (patch) | |
tree | 7b68cc4850f42b8ce290a260ab22cc603b8010ee /ironic/api/app.py | |
parent | 83746b90092a813b82d4e0135c4e6a2f8a5bd52c (diff) | |
download | ironic-8c07c4fda3e6a86a40aa00759652b99acbd73331.tar.gz |
Enforce flake8 E123/6/7/8 in ironic
This patch enforces the rules E123, E126, E127, and E128 in the ironic
code base:
E123 - closing bracket does not match indentation of opening
bracket’s line
E126 - continuation line over-indented for hanging indent
E127 - continuation line over-indented for visual indent
E128 - continuation line under-indented for visual indent
This fixes any parts of the current code which fails these rules and
removes these rules from the tox.ini flake8 ignore list.
Change-Id: Ia96582b5e9abc088d6c1694afc93c59be4a4065c
Closes-Bug: 1421522
Diffstat (limited to 'ironic/api/app.py')
-rw-r--r-- | ironic/api/app.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ironic/api/app.py b/ironic/api/app.py index 58f5b1786..5bc932fba 100644 --- a/ironic/api/app.py +++ b/ironic/api/app.py @@ -24,7 +24,8 @@ from ironic.api import hooks from ironic.api import middleware api_opts = [ - cfg.StrOpt('auth_strategy', + cfg.StrOpt( + 'auth_strategy', default='keystone', help='Authentication strategy used by ironic-api: one of "keystone" ' 'or "noauth". "noauth" should not be used in a production ' @@ -33,7 +34,7 @@ api_opts = [ default=False, help=('Enable pecan debug mode. WARNING: this is insecure ' 'and should not be used in a production environment.')), - ] +] CONF = cfg.CONF CONF.register_opts(api_opts) |