From d18d7c86581b419541b291990173f5fb33a45445 Mon Sep 17 00:00:00 2001 From: kesper Date: Thu, 23 Mar 2017 05:52:33 +0000 Subject: [PATCH] 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 --- functions | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/functions b/functions index 4435f2de2f..872f21691a 100644 --- a/functions +++ b/functions @@ -666,11 +666,7 @@ function set_mtu { # 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' ]] }