NetworkNode doesn't exist anymore

This commit is contained in:
Vishvananda Ishaya
2010-06-24 04:11:55 +01:00
committed by andy
parent 892d55abfe
commit 8ef5f8eb79

View File

@@ -2,13 +2,13 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright [2010] [Anso Labs, LLC] # Copyright [2010] [Anso Labs, LLC]
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,7 +17,7 @@
""" """
Twistd daemon for the nova compute nodes. Twistd daemon for the nova compute nodes.
Receives messages via AMQP, manages pool of worker threads Receives messages via AMQP, manages pool of worker threads
for async tasks. for async tasks.
""" """
import logging import logging
@@ -55,7 +55,7 @@ logging.getLogger().setLevel(logging.DEBUG)
def main(): def main():
logging.warn('Starting compute node') logging.warn('Starting compute node')
n = node.NetworkNode() n = node.Node()
d = n.adopt_instances() d = n.adopt_instances()
d.addCallback(lambda x: logging.info('Adopted %d instances', x)) d.addCallback(lambda x: logging.info('Adopted %d instances', x))