typo fixes and extra print statements removed
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user