Commit c326533c authored by Kristian Feldsam's avatar Kristian Feldsam
Browse files

Wehn using SSH we don't need to login to WSAPI


Signed-off-by: Kristian Feldsam's avatarKristián Feldsam <feldsam@gmail.com>
parent 11813746
......@@ -166,5 +166,3 @@ if args.verbose:
except Exception as ex:
print ex
# disconnect form 3PAR
_3par.logout()
......@@ -16,16 +16,6 @@ cl = client.HPE3ParClient(config._3PAR['api'], False, config._3PAR['secure'], No
def login():
cl.setSSHOptions(config._3PAR['ip'], config._3PAR['username'], config._3PAR['password'])
try:
cl.login(config._3PAR['username'], config._3PAR['password'])
except exceptions.HTTPUnauthorized:
print "Login failed."
functions.send_email('Can not login to 3PAR!')
def logout():
cl.logout()
def vv_name(source):
ex = source.split(':')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment