File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212from ConfigParser import MissingSectionHeaderError
1313
1414from lib .core .common import checkFile
15+ from lib .core .common import unArrayizeValue
1516from lib .core .common import UnicodeRawConfigParser
1617from lib .core .data import conf
1718from lib .core .data import logger
@@ -87,15 +88,9 @@ def configFileParser(configFile):
8788
8889 for family , optionData in optDict .items ():
8990 for option , datatype in optionData .items ():
90- boolean = False
91- integer = False
91+ datatype = unArrayizeValue (datatype )
9292
93- if isinstance (datatype , (list , tuple , set )):
94- datatype = datatype [0 ]
95-
96- if datatype == "boolean" :
97- boolean = True
98- elif datatype == "integer" :
99- integer = True
93+ boolean = datatype == "boolean"
94+ integer = datatype == "integer"
10095
10196 configFileProxy (family , option , boolean , integer )
You can’t perform that action at this time.
0 commit comments