summaryrefslogtreecommitdiff
path: root/cloudinit/netinfo.py
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2016-09-21 15:45:45 -0400
committerScott Moser <smoser@brickies.net>2016-09-21 16:33:19 -0400
commit40a400e42603aa1b80d9f623bc779799b370c091 (patch)
treec6b06266be9ba57f5764290d04d61584e732512c /cloudinit/netinfo.py
parent970dbd13f5ae40b0f95ea390b72d2b3426e8e4d9 (diff)
downloadvyos-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