Skip to content

Commit f2ebfe0

Browse files
Gaurav AradhyeGirish Shilamkar
authored andcommitted
CLOUDSTACK-6612: Resolved issue with sshClient.py
1 parent d5425e1 commit f2ebfe0

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎tools/marvin/marvin/config/test_data.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
},
618618
"natrule": {
619619
"privateport": 22,
620-
"publicport": 2222,
620+
"publicport": 22,
621621
"protocol": "TCP"
622622
},
623623
"lbrule": {

‎tools/marvin/marvin/sshClient.py‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
import paramiko
1918
from paramiko import (BadHostKeyException,
2019
AuthenticationException,
2120
SSHException,
@@ -32,9 +31,8 @@
3231
import contextlib
3332
import logging
3433
from marvin.codes import (
35-
SUCCESS, FAILED, INVALID_INPUT, EXCEPTION_OCCURRED
34+
SUCCESS, FAILED, INVALID_INPUT
3635
)
37-
from contextlib import closing
3836

3937

4038
class SshClient(object):
@@ -152,9 +150,9 @@ def createConnection(self):
152150
self.logger.\
153151
exception("SshClient: Exception under "
154152
"createConnection: %s" % except_msg)
155-
self.retryCnt = self.retryCnt - 1
153+
self.retryCnt -= 1
156154
time.sleep(self.delay)
157-
return ret
155+
return ret
158156

159157
def runCommand(self, command):
160158
'''

0 commit comments

Comments
 (0)