~brendan-donegan/checkbox-certification/sru_wireless_scanning

« back to all changes in this revision

Viewing changes to bin/checkbox-to-certification

  • Committer: Marc Tardif
  • Date: 2011-10-12 15:51:06 UTC
  • mto: This revision was merged to the branch mainline in revision 420.
  • Revision ID: marc.tardif@canonical.com-20111012155106-a93n50juelxo16pm
Made exchange loop for multiple exchanges more resilient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
                return 1
163
163
 
164
164
            payload = bpickle.loads(response.read())
165
 
            headers["X-Submission-ID"] = payload["messages"][0]["secure_id"]
 
165
            if payload["messages"] \
 
166
               and payload["messages"][0]["type"] == "report-submission":
 
167
                headers["X-Submission-ID"] = payload["messages"][0]["secure_id"]
166
168
            next_sequence = payload["next-sequence"]
167
169
            messages = messages[next_sequence:]
168
170