fixeria has submitted this change. ( 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(-)
Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve osmith: Looks good to me, approved laforge: Looks good to me, but someone else must approve
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