summaryrefslogtreecommitdiff
path: root/tests/unittests/test_ds_identify.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2018-11-27 02:09:29 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-11-27 02:09:29 +0000
commite9d57b80c51a9952d7efa27da3ce469cbdf414b1 (patch)
tree7d3bcb0c64934d4931af050d712c50111165ad01 /tests/unittests/test_ds_identify.py
parentef0611a51a98a273cfa37b0daeb3e9d151888b88 (diff)
downloadvyos-cloud-init-e9d57b80c51a9952d7efa27da3ce469cbdf414b1.tar.gz
vyos-cloud-init-e9d57b80c51a9952d7efa27da3ce469cbdf414b1.zip
logs: collect-logs ignore instance-data-sensitive.json on non-root user
Since /run/cloud-init/instance-data-sensitive.json is root read-only, ignore this file if non-root user runs collect-logs. If --include-userdata is provided on the command line, exit in error if non-root user attempts this operation. Lastly, update the __main__ to exit based on return value of main. LP: #1805201
Diffstat (limited to 'tests/unittests/test_ds_identify.py')
0 files changed, 0 insertions, 0 deletions