ceph / ceph-medic

find common issues in ceph clusters
MIT License
22 stars 18 forks source link

compat: swap the order of configparser import #131

Closed alfredodeza closed 5 years ago

alfredodeza commented 5 years ago

The compatibility layer can get messed up by the 'configparser' package that is available in Python 2.7 which clashes with 3.6

By giving preference to importing from ConfigParser as it is in 2.7 we prevent the problem of NoOptionError not showing up correctly.

Signed-off-by: Alfredo Deza adeza@redhat.com