projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
15531: Documentation updates
[arvados.git]
/
sdk
/
python
/
tests
/
fed-migrate
/
set_login.py
1
import json
2
import sys
3
4
f = open(sys.argv[1], "r+")
5
j = json.load(f)
6
j["Clusters"][sys.argv[2]]["Login"] = {"LoginCluster": sys.argv[3]}
7
for r in j["Clusters"][sys.argv[2]]["RemoteClusters"]:
8
j["Clusters"][sys.argv[2]]["RemoteClusters"][r]["Insecure"] = True
9
f.seek(0)
10
json.dump(j, f)