~annegentle/nova/extdoc

« back to all changes in this revision

Viewing changes to nova/scheduler/zone_aware_scheduler.py

  • Committer: Tarmac
  • Author(s): Matthew Hooker
  • Date: 2011-08-10 14:53:53 UTC
  • mfrom: (1355.2.24 pylint-fixes)
  • Revision ID: tarmac-20110810145353-rmc0lkjirgunxe08
These fixes are the result of trolling the pylint violations here

https://jenkins.openstack.org/job/nova-pylint-errors/violations/

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
        """
267
267
 
268
268
        if topic != "compute":
269
 
            raise NotImplemented(_("Zone Aware Scheduler only understands "
270
 
                                   "Compute nodes (for now)"))
 
269
            raise NotImplementedError(_("Zone Aware Scheduler only understands"
 
270
                                        " Compute nodes (for now)"))
271
271
 
272
272
        num_instances = request_spec.get('num_instances', 1)
273
273
        instance_type = request_spec['instance_type']