]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/util: do not print error if VERSION_ID is missing 17787/head
authorKefu Chai <kchai@redhat.com>
Mon, 18 Sep 2017 04:57:29 +0000 (12:57 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 18 Sep 2017 05:01:33 +0000 (13:01 +0800)
per os-release(5), VERSION_ID is optional.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/util.cc

index 97b476c3e996ce6cd321d56196d615ada22db4df..3f454f93f70208275fe9d611532948242b608e48 100644 (file)
@@ -186,7 +186,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;
   }