~gundlach/nova/novash

« back to all changes in this revision

Viewing changes to bin/nova-network

Make sure all workers look for their flagfile in the same spot.

Stop nova-manage from using /etc/nova/nova-manage.conf as its default
flagfile. This made made development awkward since everything but
nova-manage would use defaults for everything, but nova-manage would use
whatever config was in /etc/nova/nova-manage.conf which was likely put
there by a package of some sort.

This way, we can leave it to the packagers to set this default to
something else.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
from nova import service
36
36
from nova import twistd
 
37
from nova import utils
37
38
 
38
39
 
39
40
if __name__ == '__main__':
40
41
    twistd.serve(__file__)
41
42
 
42
43
if __name__ == '__builtin__':
 
44
    utils.default_flagfile()
43
45
    application = service.Service.create()  # pylint: disable-msg=C0103