Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
try:
f = file(path)
except IOError as e:
- raise exc.ConfigError(e)
+ raise exc.ConfigError(
+ "%s; has `ceph-deploy new` been run in this directory?" % e
+ )
else:
with contextlib.closing(f):
return parse(f)
with open(path) as ceph_conf:
return ceph_conf.read()
except (IOError, OSError) as e:
- raise exc.ConfigError(e)
+ raise exc.ConfigError(
+ "%s; has `ceph-deploy new` been run in this directory?" % e
+ )
def write_conf(cluster, conf, overwrite):