Fix for bug #1170155

https://bugs.launchpad.net/nova/+bug/1170155