Modifications to onos_install to correctly handle non-option sendline
diff --git a/TestON/drivers/common/cli/onosdriver.py b/TestON/drivers/common/cli/onosdriver.py
index fd9fef4..7db4ab5 100644
--- a/TestON/drivers/common/cli/onosdriver.py
+++ b/TestON/drivers/common/cli/onosdriver.py
@@ -655,7 +655,10 @@
Returns: main.TRUE on success and main.FALSE on failure
'''
try:
- self.handle.sendline("onos-install " + options + " " + node)
+ if options:
+ self.handle.sendline("onos-install " + options + " " + node)
+ else:
+ self.handle.sendline("onos-install "+node)
self.handle.expect("onos-install ")
#NOTE: this timeout may need to change depending on the network and size of ONOS
i=self.handle.expect(["Network\sis\sunreachable",