cc_mounts.py: convert user input from int to string
for 'mounts' entries that yaml interprets as integers, we need to be strings. This is because of he 'join' that is used on the array. For example: mounts: - [ ebs1, none, swap, sw, 0, 0 ] was throwing error when the array was joined.
This commit is contained in:
parent
890fcd7a71
commit
5a26f28e69
@ -70,6 +70,10 @@ def handle(name,cfg,cloud,log,args):
|
|||||||
if shortname.match(cfgmnt[i][0]):
|
if shortname.match(cfgmnt[i][0]):
|
||||||
cfgmnt[i][0] = "/dev/%s" % cfgmnt[i][0]
|
cfgmnt[i][0] = "/dev/%s" % cfgmnt[i][0]
|
||||||
|
|
||||||
|
# in case the user did not quote a field (likely fs-freq, fs_passno)
|
||||||
|
for j in range(len(cfgmnt[i])):
|
||||||
|
cfgmnt[i][j]=str(cfgmnt[i][j])
|
||||||
|
|
||||||
for i in range(len(cfgmnt)):
|
for i in range(len(cfgmnt)):
|
||||||
# fill in values with defaults from defvals above
|
# fill in values with defaults from defvals above
|
||||||
for j in range(len(defvals)):
|
for j in range(len(defvals)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user