[Nailgun] NetworkTemplate behaves incorrectly
Bug #1500869 reported by
Ihor Kalnytskyi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Ihor Kalnytskyi |
Bug Description
Current implementation of `NetworkTemplate` class is based on built-in `string.Template`. Unfortunately, the `string.Template` fits poorly our needs, since it's focuses on delimeter-based approach first when we need a braced one. Moreover, the `string.Template` has bugs in its implementation prior Python 2.7.10, and our `NetworkTemplate` behaves wrongly. Just check out this test -
(we lost closes brace)
In order to make this class work properly on all Python interpreters, and reduce number of potential bugs (due to delimeter-based approach) let's reimplement it.
Fix proposed to branch: master /review. openstack. org/229011
Review: https:/