diff options
author | Scott Moser <smoser@brickies.net> | 2016-09-21 15:45:45 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-09-21 16:33:19 -0400 |
commit | 40a400e42603aa1b80d9f623bc779799b370c091 (patch) | |
tree | c6b06266be9ba57f5764290d04d61584e732512c /cloudinit/netinfo.py | |
parent | 970dbd13f5ae40b0f95ea390b72d2b3426e8e4d9 (diff) | |
download | vyos-cloud-init-40a400e42603aa1b80d9f623bc779799b370c091.tar.gz vyos-cloud-init-40a400e42603aa1b80d9f623bc779799b370c091.zip |
subp: add 'update_env' argument
In order for a caller to use 'env' argument of subp, they
will realistically do:
env = os.environ.copy()
env['FOO'] = 'BZR'
subp(cmd, env=env)
This shortens that to be:
subp(cmd, update_env={'FOO': 'BZR'})
Add tests, and update growpart tests to use mock when playing with
os.environ.
Diffstat (limited to 'cloudinit/netinfo.py')
0 files changed, 0 insertions, 0 deletions