From a805702b98bbcafdf0b61c51a483e5f98b2bcab2 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 28 Feb 2012 19:12:33 -0500 Subject: fix docstring for is_container --- cloudinit/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cloudinit') 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 -- cgit v1.2.3