diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-24 17:52:21 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-03-24 17:52:21 +0000 |
| commit | 5b1abbb34c0a35d7d6d142ae9afd2cde74b1782e (patch) | |
| tree | 3b5662d5e75911867f08cdb7fbfa0da2885c9b3b | |
| parent | b45f4c2f8b5537b758dad7d62dc73e7be216f516 (diff) | |
| parent | 16372d3bc0181a57958ce185e89f1f21126b9e77 (diff) | |
Don't try to parse the empty string as a datetime
| -rw-r--r-- | nova/image/glance.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py index 171b28fde..9984a3ba1 100644 --- a/nova/image/glance.py +++ b/nova/image/glance.py @@ -73,7 +73,7 @@ class GlanceImageService(service.BaseImageService): Returns image with known timestamp fields converted to datetime objects """ for attr in ['created_at', 'updated_at', 'deleted_at']: - if image.get(attr) is not None: + if image.get(attr): image[attr] = self._parse_glance_iso8601_timestamp(image[attr]) return image |
