Skip to content

Commit

Permalink
common/util: do not print error if VERSION_ID is missing
Browse files Browse the repository at this point in the history
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 eff4961)
  • Loading branch information
tchaikov committed Mar 28, 2018
1 parent 19e4573 commit 46401fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/util.cc
Expand Up @@ -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;
}
Expand Down

0 comments on commit 46401fc

Please sign in to comment.