summaryrefslogtreecommitdiffstats
path: root/tests/objectstore
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-10-30 09:28:33 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-10-30 09:28:33 +0100
commita91572b7f39038d960fc567859f2b2c7442ca5a7 (patch)
treec1cb61876f264d9f373ea7716fc0a81757b214d8 /tests/objectstore
parent0c1a8c953aba8968301f0871a607d5abcf7b3003 (diff)
downloadnextcloud-server-a91572b7f39038d960fc567859f2b2c7442ca5a7.tar.gz
nextcloud-server-a91572b7f39038d960fc567859f2b2c7442ca5a7.zip
Use proper statement to retrieve the IP of an docker instance
Diffstat (limited to 'tests/objectstore')
-rwxr-xr-xtests/objectstore/start-swift-ceph.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/objectstore/start-swift-ceph.sh b/tests/objectstore/start-swift-ceph.sh
index 91a813f8bb3..8863a1f9f16 100755
--- a/tests/objectstore/start-swift-ceph.sh
+++ b/tests/objectstore/start-swift-ceph.sh
@@ -48,7 +48,7 @@ container=`docker run -d \
--privileged \
--entrypoint /entrypoint.sh ${docker_image}`
-host=`docker inspect $container | grep IPAddress | cut -d '"' -f 4`
+host=$(docker inspect --format="{{.NetworkSettings.IPAddress}}" "$container")
echo "${docker_image} container: $container"