Red Hat Bugzilla – Bug 989627
nodes lib function decompress() strips more than .gz when filename ends in (g|z)
Last modified: 2013-09-10 11:45:24 EDT
The nodes lib function decompress() strips more than .gz when filename ends in (g|z). Uses rstrip('.gz') which strips the specified characters in any order. This mainly affects the unit tests which fail when generated file names (see: tempfile) end in (g|z) but could cause other issues.
when compressed is:
but decompresses to:
Note trailing 'z' removed.
moving to verified
<jortel> as for 989627 - 2 things:
<jortel> 1. we dont see this in production because the file names dont end in (g|z). really just affected generated tempdir names in unit tests
<jortel> 2. in 2.3 this entire module goes away.