diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-09-10 14:18:58 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-09-10 14:18:58 -0400 |
commit | 7dff14c285d6562b9cd0b47876628607feac4a18 (patch) | |
tree | 50daaed5a66f6404f9511e92df0027e00ec3f826 /cloudinit/helpers.py | |
parent | 8ed952a461ed81af4011e02f3df47add1066cd0f (diff) | |
download | vyos-cloud-init-7dff14c285d6562b9cd0b47876628607feac4a18.tar.gz vyos-cloud-init-7dff14c285d6562b9cd0b47876628607feac4a18.zip |
some cleanups and changes
* use util.subp from inside parse_shell_config,
and adjust exception handling accordingly.
* add 'switch_user_cmd' as a callback function to pass
to parse_shell_config, which allows us to mock this to avoid
'sudo' when running test cases.
Basically the test cases just return '[]' here.
* fix some pylint
* handle empty 'content' in parse_shell_config and remove
the protection that was present.
Diffstat (limited to 'cloudinit/helpers.py')
0 files changed, 0 insertions, 0 deletions