Merge "Remove the warning for Scheduling Network"

This commit is contained in:
Jenkins 2013-11-13 02:12:54 +00:00 committed by Gerrit Code Review
commit be3a7f5f89

View File

@ -203,11 +203,8 @@ class DhcpAgentSchedulerDbMixin(dhcpagentscheduler
def schedule_network(self, context, created_network):
if self.network_scheduler:
chosen_agent = self.network_scheduler.schedule(
return self.network_scheduler.schedule(
self, context, created_network)
if not chosen_agent:
LOG.warn(_('Fail scheduling network %s'), created_network)
return chosen_agent
def auto_schedule_networks(self, context, host):
if self.network_scheduler: