Closed lonico closed 2 years ago
Thanks for raising! I don't quite understand the difference in behaviour - could you give a few more details?
@lonico we were able to reproduce this. We'll release a fix for it as soon as possible.
@lonico we implemented a fix for this bug. It will be available in the next nightly release and in v0.10.3. Thanks for reporting this issue!
Now released in 0.10.3.
Issue description or question
(variable) ontap_version: dict[str, str | int]
Sourcery - Use any() instead of for loop, Invert any/all to simplify comparisons sourcery(refactoring)
The proposed change fails when self.ontap_version['valid'] == -1.
(I agree the existing code is icky. A value of None or False would have been better.)
Sourcery Version
v0.10.2
Code editor or IDE name and version
vscode
OS name and version
Alpine 3.14.0.1 in WSL using VSCode on Windows