~ttx/glance/cactus-final-version

« back to all changes in this revision

Viewing changes to tests/stubs.py

  • Committer: Tarmac
  • Author(s): jaypipes at gmail
  • Date: 2011-04-05 20:42:53 UTC
  • mfrom: (100.1.1 bug747799)
  • Revision ID: tarmac-20110405204253-2w2p75cq2susatd1
Ensure we don't ask the backend store to delete an image if the image is in a queued or saving state, since clearly the backend state has yet to completely store the image.

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
            values['checksum'] = values.get('checksum')
322
322
            values['deleted'] = False
323
323
            values['properties'] = values.get('properties', {})
 
324
            values['location'] = values.get('location')
324
325
            values['created_at'] = datetime.datetime.utcnow()
325
326
            values['updated_at'] = datetime.datetime.utcnow()
326
327
            values['deleted_at'] = None