diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-02-20 23:38:51 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-02-20 23:38:51 +0000 |
| commit | 65ec81c1cb3cce8d716614a9b0bbdb219bd6e759 (patch) | |
| tree | d77436dc31ef9fee52b0aaea623d58e278c28862 /nova/virt | |
| parent | f86ec68be715073fbdcc6ef21f6053deea710289 (diff) | |
| parent | b9e47884e16ea6516769bf9f454fd66922a4282c (diff) | |
Merge "Improve unit test coverage per bug/934566."
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/libvirt/imagecache.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/virt/libvirt/imagecache.py b/nova/virt/libvirt/imagecache.py index 6e5581d84..bd714ea7f 100644 --- a/nova/virt/libvirt/imagecache.py +++ b/nova/virt/libvirt/imagecache.py @@ -232,6 +232,11 @@ class ImageCacheManager(object): Returns nothing. """ + if not os.path.exists(base_file): + LOG.debug(_('Cannot remove %(base_file)s, it does not exist'), + base_file) + return + mtime = os.path.getmtime(base_file) age = time.time() - mtime |
