From a8b805d3a3106486ad663ab2b1c6be6525465c0b Mon Sep 17 00:00:00 2001 From: He Jie Xu Date: Tue, 24 Jun 2014 11:20:26 +0800 Subject: Fix agent_id with string type in API samples files for os-agents v2 The agent_id should be integer for agent create and index. But in the api sample file it is string type. It's because the api sample tests provide agent_id with string type in fake data. This patch correct the api sample files and tests. For agent update, it use agent_id that passed from url, make the response use string for agent_id. We can't fix this problem for back-compatibility. This will be fix in the future after v3 API expose by micro-version Change-Id: I262b4b26c94dba003e80bda2f38d2e985ef9f220 Partial-Bug: #1333494 --- doc/api_samples/os-agents/agents-get-resp.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/api_samples/os-agents/agents-get-resp.json') diff --git a/doc/api_samples/os-agents/agents-get-resp.json b/doc/api_samples/os-agents/agents-get-resp.json index 36eac4ced7..73ba45c240 100644 --- a/doc/api_samples/os-agents/agents-get-resp.json +++ b/doc/api_samples/os-agents/agents-get-resp.json @@ -1,7 +1,7 @@ { "agents": [ { - "agent_id": "1", + "agent_id": 1, "architecture": "x86", "hypervisor": "hypervisor", "md5hash": "add6bb58e139be103324d04d82d8f545", -- cgit v1.2.1