]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/util: do not print error if VERSION_ID is missing
authorKefu Chai <kchai@redhat.com>
Mon, 18 Sep 2017 04:57:29 +0000 (12:57 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 28 Mar 2018 08:19:09 +0000 (16:19 +0800)
per os-release(5), VERSION_ID is optional.

Fixes: http://tracker.ceph.com/issues/23477
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit eff4961f4608384519aca0918e8ab9c7ac650f32)

src/common/util.cc

index 4f31b932faa4385127036f7180cb6ef2a5197882..f96de189b1351f3e2eeea4a818ae0de3ed01b207 100644 (file)
@@ -182,7 +182,7 @@ static void distro_detect(map<string, string> *m, CephContext *cct)
     lderr(cct) << "distro_detect - /etc/os-release is required" << dendl;
   }
 
-  for (const char* rk: {"distro", "distro_version"}) {
+  for (const char* rk: {"distro", "distro_description"}) {
     if (m->find(rk) == m->end())
       lderr(cct) << "distro_detect - can't detect " << rk << dendl;
   }