remsim-apitool: Fix slotmap-create (integer needed, not string!)

Change-Id: If3237de7cf08be49645dfac2e3f7173d43a47e53
This commit is contained in:
Harald Welte 2019-09-12 19:57:04 +02:00
parent a008e62523
commit fc0fff1880
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ def rest_delete(suffix):
#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)