diff options
| author | David Subiros <david.perez5@hp.com> | 2011-10-04 13:12:40 +0100 |
|---|---|---|
| committer | David Subiros <david.perez5@hp.com> | 2011-11-11 15:57:04 +0000 |
| commit | 17ae2d2662ca9af6eee0cf96fe48d3951593dc6b (patch) | |
| tree | 54eca07a5b03b8bc8d75240745f663b711764743 /nova/virt | |
| parent | 59dfaf9e02ff0064a6844c9c986737267317776f (diff) | |
fix rebuild sha1 not string error
fixes bug #889164
The sha1() parameter is converted to a string
before calling the funcion.
Change-Id: I9cb6ff43c106c214e027d3bdacb795b4b0269f94
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/libvirt/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/connection.py b/nova/virt/libvirt/connection.py index 28e351771..fc03ea67b 100644 --- a/nova/virt/libvirt/connection.py +++ b/nova/virt/libvirt/connection.py @@ -896,7 +896,7 @@ class LibvirtConnection(driver.ComputeDriver): user_id=inst['user_id'], project_id=inst['project_id']) - root_fname = hashlib.sha1(disk_images['image_id']).hexdigest() + root_fname = hashlib.sha1(str(disk_images['image_id'])).hexdigest() size = FLAGS.minimum_root_size inst_type_id = inst['instance_type_id'] |
