Ensure overriding test vars with env vars works for booleans#727
Conversation
mitechie
left a comment
There was a problem hiding this comment.
one question on just doing all the right things for processing.
|
It'd be good to note the test/change that drove this as well to help justify the change in practice. |
0c45af5 to
b3187f2
Compare
It's a fix for a test running feature that hasn't been widely used yet. The only specific thing that drove it was I was about to run a fairly large set of integration tests so wanted to make sure |
b3187f2 to
b78424b
Compare
OddBloke
left a comment
There was a problem hiding this comment.
Thanks!
(I wonder if we have any cloud-init code that could be simplified with this? Probably not unless the interface is bug-compatible.)
| # This file is part of cloud-init. See LICENSE file for license information. | ||
| import os | ||
|
|
||
| from distutils.util import strtobool |
There was a problem hiding this comment.
🎶 hello util my old friend 🎶
Proposed Commit Message
Ensure overriding test vars with env vars works for booleans
Additional Context
n/a
Test Steps
CLOUD_INIT_KEEP_INSTANCE=False pytest <any_test>
Ensure the instance isn't kept around.
Checklist: