summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-06-15 14:41:09 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-06-15 14:41:09 +0000
commit8ecf36310d35a880a0ee95d4c7fbaf3324646d58 (patch)
tree50a6721c1cc8c1892eb2ffc76ce2d439ea239f56
parentd298ba8c1f9fbd47e4d30364e0b1a894c8c5c424 (diff)
PEP8 cleanups
-rwxr-xr-xbin/nova-manage3
-rw-r--r--nova/db/api.py3
-rw-r--r--nova/db/sqlalchemy/api.py3
3 files changed, 6 insertions, 3 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index c004a36c0..62eb8bf12 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -1085,7 +1085,8 @@ class ImageCommands(object):
class AgentBuildCommands(object):
"""Class for managing agent builds."""
- def create(self, os, architecture, version, url, md5hash, hypervisor='xen'):
+ def create(self, os, architecture, version, url, md5hash,
+ hypervisor='xen'):
"""creates a new agent build
arguments: os architecture version url md5hash [hypervisor='xen']"""
ctxt = context.get_admin_context()
diff --git a/nova/db/api.py b/nova/db/api.py
index ff4339351..4649e7ec1 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -1259,7 +1259,8 @@ def agent_build_create(context, values):
def agent_build_get_by_triple(context, hypervisor, os, architecture):
"""Get agent build by hypervisor/OS/architecture triple."""
- return IMPL.agent_build_get_by_triple(context, hypervisor, os, architecture)
+ return IMPL.agent_build_get_by_triple(context, hypervisor, os,
+ architecture)
def agent_build_get_all(context):
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index d7a3b4c49..12f63b4bf 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -2693,7 +2693,8 @@ def agent_build_create(context, values):
@require_admin_context
-def agent_build_get_by_triple(context, hypervisor, os, architecture, session=None):
+def agent_build_get_by_triple(context, hypervisor, os, architecture,
+ session=None):
if not session:
session = get_session()
return session.query(models.AgentBuild).\