X-Git-Url: https://git.distorted.org.uk/~mdw/hippotat/blobdiff_plain/a2b48abfb3e429655bbc13992bd2dd12d05679e7..dce21e00c38132b17ec973923f4f7d0cbf47049f:/hippotatlib/__init__.py diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index 9b2c33d..282266c 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -157,7 +157,7 @@ vvnetwork = 172.24.230.192 # [] -# password = # used by both, must match +# secret = # used by both, must match [LIMIT] max_batch_down = 262144 @@ -521,7 +521,7 @@ def cfg_process_client_limited(cc,ss,sections,key): cc.__dict__[key] = min(val,lim) def cfg_process_client_common(cc,ss,cs,ci): - # returns sections to search in, iff password is defined, otherwise None + # returns sections to search in, iff secret is defined, otherwise None cc.ci = ci sections = ['%s %s' % (ss,cs), @@ -529,11 +529,11 @@ def cfg_process_client_common(cc,ss,cs,ci): ss, 'COMMON'] - try: pwsection = cfg_search_section('password', sections) + try: pwsection = cfg_search_section('secret', sections) except NoOptionError: return None - pw = cfg1get(pwsection, 'password') - cc.password = pw.encode('utf-8') + pw = cfg1get(pwsection, 'secret') + cc.secret = pw.encode('utf-8') cfg_process_client_limited(cc,ss,sections,'target_requests_outstanding') cfg_process_client_limited(cc,ss,sections,'http_timeout') @@ -607,7 +607,7 @@ def common_startup(process_cfg): def read_defconfig(): readconfig('/etc/hippotat/config.d', False) - readconfig('/etc/hippotat/passwords.d', False) + readconfig('/etc/hippotat/secrets.d', False) readconfig('/etc/hippotat/master.cfg', False) def oc_defconfig(od,os, value, op):