Otherwise the container_image value includes the same hash twice, separated
by a newline, causing all sorts of confusion.
Signed-off-by: Sage Weil <sage@newdream.net>
if [ "$new" -eq 1 ]; then
digest=$(curl -s \
https://registry.hub.docker.com/v2/repositories/ceph/daemon-base/tags/latest-master-devel \
- | jq -r '.images[].digest')
+ | jq -r '.images[0].digest')
ceph_adm config set global container_image "docker.io/ceph/daemon-base@$digest"
fi
ceph_adm config-key set mgr/cephadm/ssh_identity_key -i ~/.ssh/id_rsa