diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-02-28 19:12:33 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-02-28 19:12:33 -0500 |
commit | a805702b98bbcafdf0b61c51a483e5f98b2bcab2 (patch) | |
tree | 2e9111375f5e870ea7ae055e4874481de0b62110 /cloudinit/util.py | |
parent | f7eba5ca8aaaccd6b88f40c5c6f30715bd185069 (diff) | |
download | vyos-cloud-init-a805702b98bbcafdf0b61c51a483e5f98b2bcab2.tar.gz vyos-cloud-init-a805702b98bbcafdf0b61c51a483e5f98b2bcab2.zip |
fix docstring for is_container
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index c93a17c4..c37f0316 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -517,7 +517,8 @@ def dos2unix(string): def is_container(): - # is this running in a cgroup other than / + # is this code running in a container of some sort + for helper in ('running-in-container', 'lxc-is-container'): try: # try to run a helper program. if it returns true |