]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-detect-init: Add docker detection 13218/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 1 Feb 2017 15:05:14 +0000 (16:05 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 8 Feb 2017 10:31:17 +0000 (11:31 +0100)
commitf7230984f658c48b9a9af13e844a335c3736e904
tree0fd5dd1595f98a15fa2181bfa1a4a250397c2056
parentd25b3550dae243f6868a526632e97405866e76d4
ceph-detect-init: Add docker detection

if running `ceph-detect-init` from a container, the given output is the
reference from the hosting system. This patch add the capability of
detecting if the tool is being run inside a container.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-detect-init/ceph_detect_init/__init__.py
src/ceph-detect-init/ceph_detect_init/docker/__init__.py [new file with mode: 0644]
src/ceph-detect-init/tests/test_all.py