~rlane/nova/lp773690

« back to all changes in this revision

Viewing changes to nova/virt/fake.py

  • Committer: rlane at wikimedia
  • Date: 2011-04-29 22:30:40 UTC
  • mfrom: (382.1.655 nova)
  • Revision ID: rlane@wikimedia.org-20110429223040-i0x3ds9eqwrabyru
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
        knowledge of the instance
289
289
        """
290
290
        if instance_name not in self.instances:
291
 
            raise exception.NotFound(_("Instance %s Not Found")
292
 
                                     % instance_name)
 
291
            raise exception.InstanceNotFound(instance_id=instance_name)
293
292
        i = self.instances[instance_name]
294
293
        return {'state': i.state,
295
294
                'max_mem': 0,