nic config conversion script fails if input file has blank line followed by comment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo-heat-templates (Ubuntu) |
New
|
Undecided
|
Bob Fournier |
Bug Description
The script to convert nic config files from old-style to new-style will fail if the the input yaml file has a blank like followed by a comment, like this:
-
# Uncomment when including environments/
-
It will result in this error:
Converting nic-configs/
Traceback (most recent call last):
File "/usr/share/
tpl = yaml.load(
File "/usr/lib64/
return loader.
File "/usr/lib64/
node = self.get_
File "/usr/lib64/
document = self.compose_
File "/usr/lib64/
node = self.compose_
File "/usr/lib64/
node = self.compose_
File "/usr/lib64/
while not self.check_
File "/usr/lib64/
self.
File "/usr/lib64/
"expected <block end>, but found %r" % token.id, token.start_mark)
ParserError: while parsing a block mapping
in "<string>", line 1, column 1:
heat_
^
expected <block end>, but found '<block sequence start>'
in "<string>", line 171, column 13:
This is because the first pass of converting the file doesn't properly indent the commented line if its preceded by a blank line.
Changed in tripleo-heat-templates (Ubuntu): | |
assignee: | nobody → Bob Fournier (bfournie) |
This issue was fixed in the openstack/ tripleo- heat-templates 9.0.0.0b4 development milestone.