typo fixes and extra print statements removed

This commit is contained in:
Vishvananda Ishaya
2010-07-22 07:51:03 -05:00
parent 18dff486e7
commit 8174a2db67
4 changed files with 6 additions and 8 deletions

View File

@@ -22,11 +22,11 @@
"""
from nova import twistd
from nova.compute import node
from nova.compute import computenode
if __name__ == '__main__':
twistd.serve(__file__)
if __name__ == '__builtin__':
application = node.ComputeNode.create()
application = computenode.ComputeNode.create()

View File

@@ -22,11 +22,11 @@
"""
from nova import twistd
from nova.network import node
from nova.network import networknode
if __name__ == '__main__':
twistd.serve(__file__)
if __name__ == '__builtin__':
application = node.NetworkNode.create()
application = networknode.NetworkNode.create()

View File

@@ -22,11 +22,11 @@
"""
from nova import twistd
from nova.volume import node
from nova.volume import volumenode
if __name__ == '__main__':
twistd.serve(__file__)
if __name__ == '__builtin__':
application = node.VolumeNode.create()
application = volumenode.VolumeNode.create()

View File

@@ -216,12 +216,10 @@ def serve(filename):
elif FLAGS.pidfile.endswith('twistd.pid'):
FLAGS.pidfile = FLAGS.pidfile.replace('twistd.pid', '%s.pid' % name)
print FLAGS.logfile
if not FLAGS.logfile:
FLAGS.logfile = '%s.log' % name
elif FLAGS.logfile.endswith('twistd.log'):
FLAGS.logfile = FLAGS.logfile.replace('twistd.log', '%s.log' % name)
print FLAGS.logfile
action = 'start'
if len(argv) > 1: