~mdw
/
hippotat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: Check args after reading config
[hippotat]
/
hippotatlib
/
__init__.py
diff --git
a/hippotatlib/__init__.py
b/hippotatlib/__init__.py
index
bf599e7
..
4f0bc8c
100644
(file)
--- a/
hippotatlib/__init__.py
+++ b/
hippotatlib/__init__.py
@@
-562,6
+562,11
@@
def common_startup(process_cfg):
need_defcfg = False
readconfig(value)
need_defcfg = False
readconfig(value)
+ def read_defconfig():
+ readconfig('/etc/hippotat/config.d', False)
+ readconfig('/etc/hippotat/passwords.d', False)
+ readconfig('/etc/hippotat/master.cfg', False)
+
def dfs_less_detailed(dl):
return [df for df in DBG.iterconstants() if df <= dl]
def dfs_less_detailed(dl):
return [df for df in DBG.iterconstants() if df <= dl]
@@
-625,12
+630,12
@@
just `+': all DFLAGs.
action='callback',
callback= oc_config)
action='callback',
callback= oc_config)
- (opts, args) = optparser.parse_args()
- if len(args): optparser.error('no non-option arguments please')
if need_defcfg:
if need_defcfg:
- readconfig('/etc/hippotat/config', False)
- readconfig('/etc/hippotat/config.d', False)
+ read_defconfig()
+
+ (opts, args) = optparser.parse_args()
+ if len(args): optparser.error('no non-option arguments please')
try:
(pss, pcs) = _cfg_process_putatives()
try:
(pss, pcs) = _cfg_process_putatives()