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 <>
parent 11813746
......@@ -166,5 +166,3 @@ if args.verbose:
except Exception as ex:
print ex
# disconnect form 3PAR
......@@ -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'])
cl.login(config._3PAR['username'], config._3PAR['password'])
except exceptions.HTTPUnauthorized:
print "Login failed."
functions.send_email('Can not login to 3PAR!')
def 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