~ubuntu-cloud-archive/ubuntu/precise/nova/trunk

« back to all changes in this revision

Viewing changes to nova/api/openstack/compute/versions.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Adam Gandelman
  • Date: 2012-06-22 12:39:57 UTC
  • mfrom: (1.1.57)
  • Revision ID: package-import@ubuntu.com-20120622123957-hbzwg84nt9rqwg8r
Tags: 2012.2~f2~20120621.14517-0ubuntu1
[ Chuck Short ]
* New upstream version.

[ Adam Gandelman ]
* debian/rules: Temporarily disable test suite while blocking
  tests are investigated. 
* debian/patches/kombu_tests_timeout.patch: Dropped.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
from nova.api.openstack.compute.views import versions as views_versions
21
21
from nova.api.openstack import wsgi
22
22
from nova.api.openstack import xmlutil
23
 
from nova import utils
 
23
from nova.openstack.common import timeutils
24
24
 
25
25
 
26
26
LINKS = {
124
124
    def _get_most_recent_update(self, versions):
125
125
        recent = None
126
126
        for version in versions:
127
 
            updated = utils.parse_strtime(version['updated'],
128
 
                                          '%Y-%m-%dT%H:%M:%SZ')
 
127
            updated = timeutils.parse_strtime(version['updated'],
 
128
                                              '%Y-%m-%dT%H:%M:%SZ')
129
129
            if not recent:
130
130
                recent = updated
131
131
            elif updated > recent: