This commit change check of 'running_in_container'
method so that other services ironic, nova and neutron
will not break.
Change-Id: I42eb587cfaebf37944cb10e459b8b8f7b4b4e4ba
| ... | ... |
@@ -666,11 +666,7 @@ function set_mtu {
|
| 666 | 666 |
|
| 667 | 667 |
# running_in_container - Returns true otherwise false |
| 668 | 668 |
function running_in_container {
|
| 669 |
- if [[ $(systemd-detect-virt --container) == 'none' ]]; then |
|
| 670 |
- return 0 |
|
| 671 |
- fi |
|
| 672 |
- |
|
| 673 |
- return 1 |
|
| 669 |
+ [[ $(systemd-detect-virt --container) != 'none' ]] |
|
| 674 | 670 |
} |
| 675 | 671 |
|
| 676 | 672 |
|