]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: pull: strip newline from version string 33446/head
authorSage Weil <sage@redhat.com>
Thu, 20 Feb 2020 23:17:22 +0000 (17:17 -0600)
committerSage Weil <sage@redhat.com>
Thu, 20 Feb 2020 23:18:14 +0000 (17:18 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm

index 49ea389939d969286c499429850a5ea7928f22e5..53a1028200fd942babfbb0f29c83c404049fb81a 100755 (executable)
@@ -1637,7 +1637,7 @@ def command_inspect_image():
     if ret:
         return errno.ENOENT
     image_id = normalize_container_id(out.strip())
-    ver = CephContainer(args.image, 'ceph', ['--version']).run()
+    ver = CephContainer(args.image, 'ceph', ['--version']).run().strip()
     r = {
         'image_id': image_id,
         'ceph_version': ver,