Browse Source

Fix key type of `used` dict in JSON responses

JSON regulates key type to be string.

Co-Authored-By: Matt Peters <matt.peters@windriver.com>

Partially-implements: blueprint network-segment-range-management
Change-Id: I946a6ee14cef4f6b2e7e29ac644b31e1c340e83b
Kailun Qin 3 months ago
parent
commit
813a5ce92d
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      specs/stein/network-segment-range-management.rst

+ 4
- 4
specs/stein/network-segment-range-management.rst View File

@@ -351,8 +351,8 @@ line with the new resources previously introduced:
351 351
           "physical_network": "physnet1",
352 352
           "minimum": 100,
353 353
           "maximum": 105,
354
-          "used": {100: "07ac1127ee9647d48ce2626867104a13",
355
-                   101: "d4fa62aa47d340d98d076801aa7e6ec4"},
354
+          "used": {"100": "07ac1127ee9647d48ce2626867104a13",
355
+                   "101": "d4fa62aa47d340d98d076801aa7e6ec4"},
356 356
           "available": [102, 103, 104, 105],
357 357
         }
358 358
       ]
@@ -376,8 +376,8 @@ line with the new resources previously introduced:
376 376
         "physical_network": "physnet1",
377 377
         "minimum": 100,
378 378
         "maximum": 105,
379
-        "used": {100: "07ac1127ee9647d48ce2626867104a13",
380
-                 101: "d4fa62aa47d340d98d076801aa7e6ec4"},
379
+        "used": {"100": "07ac1127ee9647d48ce2626867104a13",
380
+                 "101": "d4fa62aa47d340d98d076801aa7e6ec4"},
381 381
         "available": [102, 103, 104, 105],
382 382
       }
383 383
     }

Loading…
Cancel
Save