diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-06-27 19:52:34 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-06-27 19:52:34 +0000 |
commit | e423182012033b73ee8b5ad5132f2e5e0b7b5906 (patch) | |
tree | 831dfc819ad66c5bc16cff4279b04c63ad1df095 /nova/api/openstack/compute | |
parent | 6d092526e9b7eccc35e235aabd9038661d21ffa2 (diff) | |
parent | a8b805d3a3106486ad663ab2b1c6be6525465c0b (diff) | |
download | nova-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.py | 5 |
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}} |