Fix new pep8 checks so we can get the new hacking package

Change-Id: I41ba51ce6b3ac61b5af0fb02b8fb86285d20eba6
This commit is contained in:
Angus Salkeld
2014-06-16 11:43:38 +10:00
parent a13fc6932d
commit 743a7a253b
5 changed files with 7 additions and 19 deletions

View File

@@ -37,8 +37,9 @@ def Client(version, **kwargs):
def get_client(api_version, **kwargs):
"""Get an authtenticated client, based on the credentials
in the keyword args.
"""Get an authtenticated client.
This is based on the credentials in the keyword args.
:param api_version: the API version to use
:param kwargs: keyword args containing credentials, either:

View File

@@ -124,7 +124,7 @@ class CommandsBase(object):
@property
def _actions(self):
"""Action handler"""
"""Action handler."""
return dict((attr, getattr(self, attr))
for attr in dir(self)
if not attr.startswith('_')

View File

@@ -137,8 +137,8 @@ class AssemblyCommands(cli_utils.CommandsBase):
help="Assembly uuid or name")
args = self.parser.parse_args()
assem = self.client.assemblies.find(name_or_id=args.assembly_uuid)
cli_assem.AssemblyManager(self.client).delete(assembly_id=
str(assem.uuid))
cli_assem.AssemblyManager(self.client).delete(
assembly_id=str(assem.uuid))
def list(self):
"""List all assemblies."""

View File

@@ -1,13 +0,0 @@
# -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

View File

@@ -17,13 +17,13 @@ import json
import re
import sys
import uuid
import yaml
import fixtures
import mock
import six
from stevedore import extension
from testtools import matchers
import yaml
from solumclient.openstack.common.apiclient import auth
from solumclient.openstack.common import cliutils