Inconsistent keyword parameter in fuel-qa update_yaml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Vasily Gorin |
Bug Description
Keyword parameter in update_yaml in helpers/utils.py has following signature
is_uniq - If true, add the unique two-digit suffix to the variable name.
https:/
>>> update_
>>> update_
>>> update_
>>> update_
cat test.yaml
test: '44.00'
test_00: '23.00'
test_01: '23.00'
As it is clear False is working as True and True is working as False. This is due to lines at
https:/
if is_uniq:
last = yaml_tree[-1]
else:
# Create an uniq suffix in range '_00' to '_99'
Bug has no effects on end-user because it is used only in one place and is adapted to work properly
Changed in fuel: | |
status: | New → Confirmed |
tags: | added: non-release |
Changed in fuel: | |
assignee: | Fuel QA Team (fuel-qa) → Vasily Gorin (vgorin) |
tags: | added: area-qa |
Changed in fuel: | |
status: | Fix Committed → Fix Released |
tags: | removed: non-release |
Fix proposed to branch: master /review. openstack. org/235212
Review: https:/