Commit 8162a8e8 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Check if the devflow.conf file exists

In get_config() raise an error if the devflow.conf file does not exist.
parent a5bc90d7
......@@ -59,6 +59,9 @@ def get_config(path=None):
toplevel = get_vcs_info().toplevel
path = os.path.join(toplevel, "devflow.conf")
if not os.path.isfile(path):
raise RuntimeError("Config file: '%s' does not exist!" % path)
config = ConfigObj(path)
return config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment