]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common/options: fix ADDRVEC parsing
authorSage Weil <sage@redhat.com>
Fri, 8 Nov 2019 22:29:35 +0000 (16:29 -0600)
committerSage Weil <sage@redhat.com>
Fri, 8 Nov 2019 22:29:35 +0000 (16:29 -0600)
We never actually had any of these yet.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/options.cc

index 1f76931f8054c25c68765cba07468f1811bb56ff..858feffda2cde2ff10686451aff5728c151a1970 100644 (file)
@@ -176,7 +176,7 @@ int Option::parse_value(
       return -EINVAL;
     }
     *out = addr;
-  } else if (type == Option::TYPE_ADDR) {
+  } else if (type == Option::TYPE_ADDRVEC) {
     entity_addrvec_t addr;
     if (!addr.parse(val.c_str())){
       return -EINVAL;