~tr3buchet/nova/lock

« back to all changes in this revision

Viewing changes to nova/scheduler/chance.py

  • Committer: Vishvananda Ishaya
  • Date: 2010-12-22 20:59:53 UTC
  • mto: This revision was merged to the branch mainline in revision 482.
  • Revision ID: vishvananda@gmail.com-20101222205953-j2j5t0qjwlcd0t2s
merge trunk and upgrade to cheetah templating

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
        hosts = self.hosts_up(context, topic)
36
36
        if not hosts:
37
 
            raise driver.NoValidHost("No hosts found")
 
37
            raise driver.NoValidHost(_("No hosts found"))
38
38
        return hosts[int(random.random() * len(hosts))]