environment_format returns a non informative error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Invalid
|
Undecided
|
Unassigned | ||
python-heatclient |
In Progress
|
Medium
|
Neetu Jain |
Bug Description
Parsing a long list of environment files and failing due to human error leaves the user unable to understand where the error was.
In my case I passed 7 environment files and some were custom built. I expect an error when I did something wrong but the error I got can be more useful:
ERROR:
.
.
.
.
File "/usr/lib/
template_url)
File "/usr/lib/
env = environment_
File "/usr/lib/
raise ValueError(
ValueError: environment has wrong section "outputs"
1. what 'outputs' have to do with it? none of those files had 'outputs'.
2. which environment file failed parsing?
Tested on killo
$ heat --version
0.6.0
Changed in python-heatclient: | |
assignee: | nobody → Neetu Jain (nutshi) |
So, this is a heatclient bug, and we need to output something like "you appear to be passing a heat template instead of an environment file"
The "outputs" part is because you're doing -e some_file.yaml, an some_file.yaml has a section called "outputs" in it, e.g it's a heat template.