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
This commit is contained in:
kesper 2017-03-23 05:52:33 +00:00
parent 63666a2079
commit d18d7c8658

View File

@ -666,11 +666,7 @@ function set_mtu {
# running_in_container - Returns true otherwise false # running_in_container - Returns true otherwise false
function running_in_container { function running_in_container {
if [[ $(systemd-detect-virt --container) == 'none' ]]; then [[ $(systemd-detect-virt --container) != 'none' ]]
return 0
fi
return 1
} }