remsim-apitool: Fix slotmap-create (integer needed, not string!)
Change-Id: If3237de7cf08be49645dfac2e3f7173d43a47e53
diff --git a/contrib/remsim-apitool.py b/contrib/remsim-apitool.py
index 35c8826..7662ae4 100755
--- a/contrib/remsim-apitool.py
+++ b/contrib/remsim-apitool.py
@@ -45,8 +45,8 @@
#rest calls
def slotmap_create(bank_id, bank_slot, client_id, client_slot):
js = {
- 'bank': {'bankId': bank_id, 'slotNr': bank_slot},
- 'client': {'clientId': client_id, 'slotNr': client_slot},
+ 'bank': {'bankId': int(bank_id), 'slotNr': int(bank_slot)},
+ 'client': {'clientId': int(client_id), 'slotNr': int(client_slot)},
}
return rest_post('/slotmaps', js)