jolly has uploaded this change for review.

View Change

osmotestconfig: fix return value of write_config()

This patch fixes the following exception, if the received string does
not match. The calling function just expects an integer.

----
TypeError: '>' not supported between instances of 'tuple' and 'int'
----

Change-Id: I24adfd344937bab1ab641327e59a25bf76e18591
---
M scripts/osmotestconfig.py
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests refs/changes/99/37799/1
diff --git a/scripts/osmotestconfig.py b/scripts/osmotestconfig.py
index aa926f1..c56849d 100755
--- a/scripts/osmotestconfig.py
+++ b/scripts/osmotestconfig.py
@@ -86,7 +86,7 @@
new_config = vty.enabled_command("write")
if not new_config.startswith("Configuration saved to "):
print(new_config)
- return 1, [new_config]
+ return 1
return 0



To view, visit change 37799. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Change-Id: I24adfd344937bab1ab641327e59a25bf76e18591
Gerrit-Change-Number: 37799
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas@eversberg.eu>