Support for long in CRL/overlay.Configuration.__setattr__().

This commit is contained in:
Jean-Paul Chaput 2020-07-14 19:55:20 +02:00
parent 960e0cda18
commit 34c1795630
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ class Configuration:
Cfg.getParamEnumerate(attr).setInt( val )
else:
Cfg.getParamInt(attr).setInt( val )
elif isinstance(val, long):
p = Cfg.getParamInt( attr ) # all params have a type
elif isinstance(val, float):
p = Cfg.getParamDouble( attr ).setDouble( val )
elif '%' in val: