Added timeout to base for description

This commit is contained in:
David Barroso committed 2015-10-29 14:18:01 +01:00
1 parent c9fc641b60
commit c75ddecbf4
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -37,11 +37,11 @@ def execute_get(device, cmd, separator=':', auto=False):
class FortiOSDriver(NetworkDriver):
def __init__(self, hostname, username, password):
def __init__(self, hostname, username, password, timeout=60):
self.hostname = hostname
self.username = username
self.password = password
self.device = FortiOS(hostname, username=username, password=password)
self.device = FortiOS(hostname, username=username, password=password, timeout=timeout)
self.config_replace = False
def open(self):