laforge has submitted this change and it was merged. (
https://gerrit.osmocom.org/c/osmo-remsim/+/15506 )
Change subject: remsim-apitool: Fix slotmap-create (integer needed, not string!)
......................................................................
remsim-apitool: Fix slotmap-create (integer needed, not string!)
Change-Id: If3237de7cf08be49645dfac2e3f7173d43a47e53
---
M contrib/remsim-apitool.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
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)
--
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/15506
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: If3237de7cf08be49645dfac2e3f7173d43a47e53
Gerrit-Change-Number: 15506
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: roh <[email protected]>
Gerrit-Reviewer: tsaitgaist <[email protected]>
Gerrit-MessageType: merged