Skip to content

Commit

Permalink
fixes bug 883233.
Browse files Browse the repository at this point in the history
fix typo in scheduler/driver.py assert_compute_node_has_enough_memory.

(cherry picked from commit fbe692f)

Change-Id: Idce87927a35b5986c970e6293428b3a5fddd00e4
  • Loading branch information
jogo authored and markmc committed Nov 8, 2011
1 parent c116592 commit 476c325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Authors
Expand Up @@ -51,6 +51,7 @@ Jason Koelker <jason@koelker.net>
Jay Pipes <jaypipes@gmail.com>
Jesse Andrews <anotherjesse@gmail.com>
Jimmy Bergman <jimmy@sigint.se>
Joe Gordon <jogo@cloudscaling.com>
Joe Heck <heckj@mac.com>
Joel Moore <joelbm24@gmail.com>
Johannes Erdfelt <johannes.erdfelt@rackspace.com>
Expand Down
3 changes: 2 additions & 1 deletion nova/scheduler/driver.py
Expand Up @@ -291,7 +291,8 @@ def assert_compute_node_has_enough_memory(self, context,
if avail <= mem_inst:
instance_id = ec2utils.id_to_ec2_id(instance_ref['id'])
reason = _("Unable to migrate %(instance_id)s to %(dest)s: "
"Lack of disk(host:%(avail)s <= instance:%(mem_inst)s)")
"Lack of memory(host:%(avail)s <= "
"instance:%(mem_inst)s)")
raise exception.MigrationError(reason=reason % locals())

def assert_compute_node_has_enough_disk(self, context,
Expand Down

0 comments on commit 476c325

Please sign in to comment.