updated models a bit and removed service classes

This commit is contained in:
Vishvananda Ishaya
2010-09-02 11:25:10 -07:00
parent e63eb090a4
commit 16b82b4558
3 changed files with 6 additions and 10 deletions

View File

@@ -21,12 +21,12 @@
Twistd daemon for the nova compute nodes. Twistd daemon for the nova compute nodes.
""" """
from nova import service
from nova import twistd from nova import twistd
from nova.compute import service
if __name__ == '__main__': if __name__ == '__main__':
twistd.serve(__file__) twistd.serve(__file__)
if __name__ == '__builtin__': if __name__ == '__builtin__':
application = service.ComputeService.create() # pylint: disable=C0103 application = service.Service.create() # pylint: disable=C0103

View File

@@ -21,16 +21,12 @@
Twistd daemon for the nova network nodes. Twistd daemon for the nova network nodes.
""" """
from nova import flags from nova import service
from nova import twistd from nova import twistd
from nova.network import service
FLAGS = flags.FLAGS
if __name__ == '__main__': if __name__ == '__main__':
twistd.serve(__file__) twistd.serve(__file__)
if __name__ == '__builtin__': if __name__ == '__builtin__':
application = service.NetworkService.create() # pylint: disable-msg=C0103 application = service.Service.create() # pylint: disable-msg=C0103

View File

@@ -21,12 +21,12 @@
Twistd daemon for the nova volume nodes. Twistd daemon for the nova volume nodes.
""" """
from nova import service
from nova import twistd from nova import twistd
from nova.volume import service
if __name__ == '__main__': if __name__ == '__main__':
twistd.serve(__file__) twistd.serve(__file__)
if __name__ == '__builtin__': if __name__ == '__builtin__':
application = service.VolumeService.create() # pylint: disable-msg=C0103 application = service.Service.create() # pylint: disable-msg=C0103