Skip to content

Commit 0098b55

Browse files
committed
Fix bug introduced while attempting to hide passwords
1 parent 9c33008 commit 0098b55

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

diagrequests.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ def all(mname, args, kargs, verbose=False):
1616
pp.pprint(args)
1717
print("kargs:")
1818
k = 'Authorization'
19+
h = kargs.get("auth",None)
20+
if h is not None and type(h) == tuple:
21+
kargs["auth"] = (h[0],"[hidden]")
1922
h = kargs.get('headers',None)
20-
if h:
23+
if h is not None:
2124
auth = h.get(k, None)
2225
if auth is not None:
2326
h[k] = "[hidden]"
2427
else:
2528
auth = None
26-
h = kargs.get("auth",None)
27-
if h and type(h) == tuple:
28-
kargs["auth"] = (h[0],"[hidden]")
2929
pp.pprint(kargs)
3030
if auth is not None:
3131
h[k] = auth

test1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
# Test creation of shelob configuration using Agave
1111
uv = Universal()
1212
uv.init(
13-
backend = backend_agave2,
13+
backend = backend_agave,
1414
notify = '{NOTIFY_URL_PASSWORD}',
1515
**rostam
1616
)
1717
os.unlink(uv.get_auth_file())
1818
uv.init(
19-
backend = backend_agave2,
19+
backend = backend_agave,
2020
notify = '{NOTIFY_URL_PASSWORD}',
2121
**rostam
2222
)

0 commit comments

Comments
 (0)