~matsubara/maas/oops-over-amqp

« back to all changes in this revision

Viewing changes to src/metadataserver/api.py

  • Committer: Tarmac
  • Author(s): Francis J. Lacoste
  • Date: 2012-04-13 21:50:40 UTC
  • mfrom: (463.1.1 bug-981068)
  • Revision ID: ed@carob-20120413215040-uancemld8zyx0f3g
[r=flacoste][bug=][author=flacoste] When commissioning completes, remove the owner allocation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
            return rc.ALL_OK
177
177
 
178
178
        node.status = target_status
 
179
        # When moving to a terminal state, remove the allocation.
 
180
        if target_status is not None:
 
181
            node.owner = None
179
182
        node.error = request.POST.get('error', '')
180
183
        node.save()
181
184