[PATCH] osmo-gsm-tester[master]: config: Fix variable reference before assigment

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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Aug 28 16:39:17 UTC 2017


Review at  https://gerrit.osmocom.org/3730

config: Fix variable reference before assigment

Change-Id: I1a1acd7b3e5ff96b09a9a8e2825fb864ead9e54b
---
M src/osmo_gsm_tester/config.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/30/3730/1

diff --git a/src/osmo_gsm_tester/config.py b/src/osmo_gsm_tester/config.py
index 392cd04..4866524 100644
--- a/src/osmo_gsm_tester/config.py
+++ b/src/osmo_gsm_tester/config.py
@@ -271,7 +271,7 @@
         if not is_list(src):
             raise ValueError('cannot combine list with a value of type: %r' % type(src))
         for i in range(len(src)):
-            log.ctx(key=key)
+            log.ctx(idx=i)
             dest[i] = overlay(dest[i], src[i])
         return dest
     return src

-- 
To view, visit https://gerrit.osmocom.org/3730
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1a1acd7b3e5ff96b09a9a8e2825fb864ead9e54b
Gerrit-PatchSet: 1
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list