Reference to unknown CONF in fakemode.py

The code reads

        else:
            print("Starting server:%s" % pid)
            pid_file = CONF.pid_file
            with open(pid_file, 'w') as f:

CONF is not defined

I tried to add this information to the common/cfg,
but I'm not sure this add is correct, please help
me to check

Closes-Bug:#1617973
Change-Id: I31e63b0321da912f6b59fbbc901e0141a7d1e73f
This commit is contained in:
jiansong 2016-09-01 00:29:45 -07:00
parent 4512aec2d4
commit 06c6be7014
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def main(conf):
start_server(conf)
else:
print("Starting server:%s" % pid)
pid_file = CONF.pid_file
pid_file = conf.pid_file
with open(pid_file, 'w') as f:
f.write(str(pid))
else: