diff options
| author | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-06-13 13:57:15 +0000 |
|---|---|---|
| committer | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-06-13 17:04:08 +0000 |
| commit | 9f7eaca80d259201844f097fec24d1e9fe9fb5e3 (patch) | |
| tree | 2e2c40b54a0d7c1b7e73818c281ad375d0a99861 /nova/cmd | |
| parent | 77595f8e08a61507ad5c7c990651fd4f8131c150 (diff) | |
| download | nova-9f7eaca80d259201844f097fec24d1e9fe9fb5e3.tar.gz nova-9f7eaca80d259201844f097fec24d1e9fe9fb5e3.tar.xz nova-9f7eaca80d259201844f097fec24d1e9fe9fb5e3.zip | |
Remove trivial cases of unused variables (1)
Kill some of the variables marked as unused by flakes8. This should
allow to enable F841 check in the future.
Only trivial cases with no function calls and obviously pure functions
(like datetime.now(), or len()) are cleaned up here.
Part 1, split to reduce conflicts.
Change-Id: I82854349574ec4bcb9336aba626eefdaed81a8c8
Diffstat (limited to 'nova/cmd')
| -rw-r--r-- | nova/cmd/manage.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/nova/cmd/manage.py b/nova/cmd/manage.py index 46e6d371f..df54e8677 100644 --- a/nova/cmd/manage.py +++ b/nova/cmd/manage.py @@ -72,7 +72,6 @@ from nova.openstack.common.db import exception as db_exc from nova.openstack.common import importutils from nova.openstack.common import log as logging from nova.openstack.common import rpc -from nova.openstack.common import timeutils from nova import quota from nova import servicegroup from nova import version @@ -655,7 +654,6 @@ class ServiceCommands(object): """ servicegroup_api = servicegroup.API() ctxt = context.get_admin_context() - now = timeutils.utcnow() services = db.service_get_all(ctxt) services = availability_zones.set_availability_zones(ctxt, services) if host: @@ -1003,13 +1001,12 @@ class AgentBuildCommands(object): hypervisor='xen'): """Creates a new agent build.""" ctxt = context.get_admin_context() - agent_build = db.agent_build_create(ctxt, - {'hypervisor': hypervisor, - 'os': os, - 'architecture': architecture, - 'version': version, - 'url': url, - 'md5hash': md5hash}) + db.agent_build_create(ctxt, {'hypervisor': hypervisor, + 'os': os, + 'architecture': architecture, + 'version': version, + 'url': url, + 'md5hash': md5hash}) def delete(self, os, architecture, hypervisor='xen'): """Deletes an existing agent build.""" |
