summaryrefslogtreecommitdiff
path: root/nova/api/openstack/compute
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-06-27 19:52:34 +0000
committerGerrit Code Review <review@openstack.org>2014-06-27 19:52:34 +0000
commite423182012033b73ee8b5ad5132f2e5e0b7b5906 (patch)
tree831dfc819ad66c5bc16cff4279b04c63ad1df095 /nova/api/openstack/compute
parent6d092526e9b7eccc35e235aabd9038661d21ffa2 (diff)
parenta8b805d3a3106486ad663ab2b1c6be6525465c0b (diff)
downloadnova-e423182012033b73ee8b5ad5132f2e5e0b7b5906.tar.gz
Merge "Fix agent_id with string type in API samples files for os-agents v2"
Diffstat (limited to 'nova/api/openstack/compute')
-rw-r--r--nova/api/openstack/compute/contrib/agents.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/api/openstack/compute/contrib/agents.py b/nova/api/openstack/compute/contrib/agents.py
index ff1ea1e054..9c7c7bdca6 100644
--- a/nova/api/openstack/compute/contrib/agents.py
+++ b/nova/api/openstack/compute/contrib/agents.py
@@ -112,6 +112,11 @@ class AgentController(object):
except exception.AgentBuildNotFound as ex:
raise webob.exc.HTTPNotFound(explanation=ex.format_message())
+ # NOTE(alex_xu): The agent_id should be integer that consistent with
+ # create/index actions. But parameter 'id' is string type that parsed
+ # from url. This is a bug, but because back-compatibility, it can't be
+ # fixed for v2 API. This will be fixed after v3 API feature exposed by
+ # micro-version in the future. lp bug #1333494
return {"agent": {'agent_id': id, 'version': version,
'url': url, 'md5hash': md5hash}}