Fixed some more PEP8 errors

This commit is contained in:
tengqm 2015-03-14 09:43:01 +08:00
parent f6ecdf96d4
commit e9184b42aa
6 changed files with 7 additions and 5 deletions

View File

@ -240,6 +240,7 @@ class ClusterController(object):
raise exc.HTTPInternalServerError(_('Failed deleting cluster.'))
def create_resource(options):
'''Clusters resource factory method.'''

View File

@ -54,7 +54,7 @@ class SenlinTrust(object):
def get_trust(context, trust_id):
'''Get trust detail information'''
'''Get trust detail information.'''
conn = sdk.create_connection(context)
session = conn.session

View File

@ -13,6 +13,7 @@
from oslo_log import log as logging
from senlin.common import exception
from senlin.common.i18n import _
from senlin.common.i18n import _LE
from senlin.engine.actions import base
from senlin.engine import node as node_mod

View File

@ -26,7 +26,6 @@ import oslo_messaging
from senlin.common import consts
from senlin.common import messaging as rpc_messaging
from senlin.db import api as db_api
from senlin.openstack.common import periodic_task
from senlin.openstack.common import service

View File

@ -93,7 +93,8 @@ class EngineClient(object):
def profile_create(self, ctxt, name, type, spec, perm, tags):
return self.call(ctxt,
self.make_msg('profile_create', name=name,
type=type, spec=spec, perm=perm, tags=tags))
type=type, spec=spec, perm=perm,
tags=tags))
def profile_get(self, ctxt, identity):
return self.call(ctxt,