forked from ungleich-public/cdist
parent
9e7b1c4c06
commit
0bf6af6d22
1 changed files with 15 additions and 5 deletions
|
@ -155,7 +155,9 @@ class CdistType(object):
|
||||||
"parameter",
|
"parameter",
|
||||||
"required")) as fd:
|
"required")) as fd:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
parameters.append(line.strip())
|
line = line.strip()
|
||||||
|
if line:
|
||||||
|
parameters.append(line)
|
||||||
except EnvironmentError:
|
except EnvironmentError:
|
||||||
# error ignored
|
# error ignored
|
||||||
pass
|
pass
|
||||||
|
@ -173,7 +175,9 @@ class CdistType(object):
|
||||||
"parameter",
|
"parameter",
|
||||||
"required_multiple")) as fd:
|
"required_multiple")) as fd:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
parameters.append(line.strip())
|
line = line.strip()
|
||||||
|
if line:
|
||||||
|
parameters.append(line)
|
||||||
except EnvironmentError:
|
except EnvironmentError:
|
||||||
# error ignored
|
# error ignored
|
||||||
pass
|
pass
|
||||||
|
@ -191,7 +195,9 @@ class CdistType(object):
|
||||||
"parameter",
|
"parameter",
|
||||||
"optional")) as fd:
|
"optional")) as fd:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
parameters.append(line.strip())
|
line = line.strip()
|
||||||
|
if line:
|
||||||
|
parameters.append(line)
|
||||||
except EnvironmentError:
|
except EnvironmentError:
|
||||||
# error ignored
|
# error ignored
|
||||||
pass
|
pass
|
||||||
|
@ -209,7 +215,9 @@ class CdistType(object):
|
||||||
"parameter",
|
"parameter",
|
||||||
"optional_multiple")) as fd:
|
"optional_multiple")) as fd:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
parameters.append(line.strip())
|
line = line.strip()
|
||||||
|
if line:
|
||||||
|
parameters.append(line)
|
||||||
except EnvironmentError:
|
except EnvironmentError:
|
||||||
# error ignored
|
# error ignored
|
||||||
pass
|
pass
|
||||||
|
@ -227,7 +235,9 @@ class CdistType(object):
|
||||||
"parameter",
|
"parameter",
|
||||||
"boolean")) as fd:
|
"boolean")) as fd:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
parameters.append(line.strip())
|
line = line.strip()
|
||||||
|
if line:
|
||||||
|
parameters.append(line)
|
||||||
except EnvironmentError:
|
except EnvironmentError:
|
||||||
# error ignored
|
# error ignored
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue