summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/util.py3
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