Skip to content

Commit fd6be7a

Browse files
author
Prasanna Santhanam
committed
marvin: establishing some defaults
when logging in just use defaults if no service dict values are provided
1 parent 82a17a4 commit fd6be7a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • tools/marvin/marvin/integration/lib

‎tools/marvin/marvin/integration/lib/base.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,16 @@ def __init__(self, items, services):
205205
self.__dict__.update(items)
206206
if "username" in services:
207207
self.username = services["username"]
208+
else:
209+
self.username = 'root'
208210
if "password" in services:
209211
self.password = services["password"]
212+
else:
213+
self.password = 'password'
210214
if "ssh_port" in services:
211215
self.ssh_port = services["ssh_port"]
216+
else:
217+
self.ssh_port = 22
212218
self.ssh_client = None
213219
#extract out the ipaddress
214220
self.ipaddress = self.nic[0].ipaddress

0 commit comments

Comments
 (0)