From: Ian Jackson Date: Tue, 18 Jun 2019 17:39:00 +0000 (+0100) Subject: config: Make c.mtu always be an integer, not a string X-Git-Tag: hippotat/1.0.0~55^2~3 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=aebc11d2a7d2306a6b6710fbb12cff9d5d6cff6a;p=hippotat.git config: Make c.mtu always be an integer, not a string We are going to want to use this other than just to feed to ipif. Signed-off-by: Ian Jackson --- diff --git a/hippotatlib/__init__.py b/hippotatlib/__init__.py index dad12b2..6c60eef 100644 --- a/hippotatlib/__init__.py +++ b/hippotatlib/__init__.py @@ -578,7 +578,7 @@ def cfg_process_ipif(c, sections, varmap): except AttributeError: continue setattr(c, d, v) for d in ('mtu',): - v = cfg_search(cfg.get, d, sections) + v = cfg_search(cfg1getint, d, sections) setattr(c, d, v) #print('CFGIPIF',repr((varmap, sections, c.__dict__)),file=sys.stderr)