jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/python/osmo-python-tests/+/37799?usp=email )
Change subject: osmotestconfig: fix return value of write_config() ......................................................................
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