Skip to content

Commit b373797

Browse files
committed
Get username/password from env var
1 parent f6711fc commit b373797

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/config-getter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55

66
import requests
77
from mailman.testing.documentation import dump_json
8+
import os
89

910
hostname="lists.boost.org"
1011
port_number="8001"
1112
rest_user="restadmin"
12-
rest_password=""
13+
rest_password=os.environ['REST_PASSWORD']
1314

1415
if not rest_password:
1516
print("please set rest_password. Exiting.")

scripts/config-setter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55

66
import requests
77
from mailman.testing.documentation import dump_json
8+
import os
89

910
hostname="lists.boost.org"
1011
port_number="8001"
1112
rest_user="restadmin"
12-
rest_password=""
13+
rest_password=os.environ['REST_PASSWORD']
1314

1415
if not rest_password:
1516
print("please set rest_password. Exiting.")

0 commit comments

Comments
 (0)