diff options
author | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-02-12 06:41:29 +0000 |
---|---|---|
committer | Steve McIntyre <steve.mcintyre@linaro.org> | 2015-02-12 06:41:29 +0000 |
commit | ad12cd7576e3014f095b352f416039a19d25ee2c (patch) | |
tree | 486bcb2c4aec960d6f1872ea75f4c8e8482b6651 | |
parent | 3dfd36f18e6372952c2ed2f771a5850b809901a1 (diff) |
Add some _
Change-Id: I87aea69f3a8d2954a35cac63f923191011d2d0ce
-rw-r--r-- | drivers/CiscoCatalyst.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/CiscoCatalyst.py b/drivers/CiscoCatalyst.py index 414486c..15b4feb 100644 --- a/drivers/CiscoCatalyst.py +++ b/drivers/CiscoCatalyst.py @@ -483,9 +483,9 @@ class CiscoCatalyst(SwitchDriver): if self.connection.match.group(2) == ">": # Need to enter "enable" mode too self._cli("enable") - if self._enablepassword is not None: + if self._enable_password is not None: self.connection.expect("Password:") - self._cli("%s" % self._enablepassword, False) + self._cli("%s" % self._enable_password, False) index = self.connection.expect(['Password:', 'Bad passwords', 'authentication failed', r'(.*)(#|>)']) if index != 3: # Any other means: failed to log in! logging.error("Enable password failure: %s\n" % self.connection.match) |