Change for the 'running_in_container' check
This commit change check of 'running_in_container'
method so that other services ironic, nova and neutron
will not break.
Change-Id: I42eb587cfaebf37944cb10e459b8b8f7b4b4e4ba
diff --git a/functions b/functions
index 4435f2d..872f216 100644
--- a/functions
+++ b/functions
@@ -666,11 +666,7 @@
# running_in_container - Returns true otherwise false
function running_in_container {
- if [[ $(systemd-detect-virt --container) == 'none' ]]; then
- return 0
- fi
-
- return 1
+ [[ $(systemd-detect-virt --container) != 'none' ]]
}