Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 26 May 2020 starting at approximately 10am CDT. It is expected to take around 30 minutes and will involve a short period of downtime, around 5 minutes, towards the end of the maintenance period. Please address any questions, comments, or concerns to uwm-help@cgca.uwm.edu.

Commit ec28bc29 authored by Tanner Prestegard's avatar Tanner Prestegard

Don't try to process .netrc file if username and password are both provided to LVAlertClient

parent c501b07c
......@@ -67,12 +67,14 @@ def _get_default_login(netrcfile, server):
def _get_login(username, password, netrc, interactive, server):
# Return right away if username and password are both provided
if username is not None and password is not None:
return username, password
default_username, default_password = _get_default_login(netrc, server)
prompt = 'password for {}@{}: '.format(username, server)
if username is not None and password is not None:
return username, password
elif username is None and default_username is None:
if username is None and default_username is None:
raise RuntimeError('Username not specified')
elif username is None or username == default_username:
return default_username, default_password
......
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