Change in ...osmo-remsim[master]: remsim-apitool: Fix slotmap-create (integer needed, not string!)

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Sep 12 18:13:03 UTC 2019


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 <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: roh <jsteiger at sysmocom.de>
Gerrit-Reviewer: tsaitgaist <kredon at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190912/9109ebb8/attachment.htm>


More information about the gerrit-log mailing list