Fix new pep8 checks so we can get the new hacking package
Change-Id: I41ba51ce6b3ac61b5af0fb02b8fb86285d20eba6
This commit is contained in:
		@@ -37,8 +37,9 @@ def Client(version, **kwargs):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_client(api_version, **kwargs):
 | 
					def get_client(api_version, **kwargs):
 | 
				
			||||||
    """Get an authtenticated client, based on the credentials
 | 
					    """Get an authtenticated client.
 | 
				
			||||||
       in the keyword args.
 | 
					
 | 
				
			||||||
 | 
					    This is based on the credentials in the keyword args.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    :param api_version: the API version to use
 | 
					    :param api_version: the API version to use
 | 
				
			||||||
    :param kwargs: keyword args containing credentials, either:
 | 
					    :param kwargs: keyword args containing credentials, either:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -124,7 +124,7 @@ class CommandsBase(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def _actions(self):
 | 
					    def _actions(self):
 | 
				
			||||||
        """Action handler"""
 | 
					        """Action handler."""
 | 
				
			||||||
        return dict((attr, getattr(self, attr))
 | 
					        return dict((attr, getattr(self, attr))
 | 
				
			||||||
                    for attr in dir(self)
 | 
					                    for attr in dir(self)
 | 
				
			||||||
                    if not attr.startswith('_')
 | 
					                    if not attr.startswith('_')
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -137,8 +137,8 @@ class AssemblyCommands(cli_utils.CommandsBase):
 | 
				
			|||||||
                                 help="Assembly uuid or name")
 | 
					                                 help="Assembly uuid or name")
 | 
				
			||||||
        args = self.parser.parse_args()
 | 
					        args = self.parser.parse_args()
 | 
				
			||||||
        assem = self.client.assemblies.find(name_or_id=args.assembly_uuid)
 | 
					        assem = self.client.assemblies.find(name_or_id=args.assembly_uuid)
 | 
				
			||||||
        cli_assem.AssemblyManager(self.client).delete(assembly_id=
 | 
					        cli_assem.AssemblyManager(self.client).delete(
 | 
				
			||||||
                                                      str(assem.uuid))
 | 
					            assembly_id=str(assem.uuid))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def list(self):
 | 
					    def list(self):
 | 
				
			||||||
        """List all assemblies."""
 | 
					        """List all assemblies."""
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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.
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,13 +17,13 @@ import json
 | 
				
			|||||||
import re
 | 
					import re
 | 
				
			||||||
import sys
 | 
					import sys
 | 
				
			||||||
import uuid
 | 
					import uuid
 | 
				
			||||||
import yaml
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
import fixtures
 | 
					import fixtures
 | 
				
			||||||
import mock
 | 
					import mock
 | 
				
			||||||
import six
 | 
					import six
 | 
				
			||||||
from stevedore import extension
 | 
					from stevedore import extension
 | 
				
			||||||
from testtools import matchers
 | 
					from testtools import matchers
 | 
				
			||||||
 | 
					import yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from solumclient.openstack.common.apiclient import auth
 | 
					from solumclient.openstack.common.apiclient import auth
 | 
				
			||||||
from solumclient.openstack.common import cliutils
 | 
					from solumclient.openstack.common import cliutils
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user