fixeria submitted this 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(-)
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.