Exceptions in meta-mock.py need more care

Bug #1701527 reported by Joonas Kylmälä on 2017-06-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Low
Unassigned

Bug Description

The tools/mock-meta.py has one error in exception handling (it excepts KeyError which is made for dicts instead of IndexError that is made for lists) and also it returns non-describing http code. I have attached a patch that fixes this.

Related branches

Joonas Kylmälä (j.kylmala) wrote :
Scott Moser (smoser) on 2017-07-17
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Low
status: Confirmed → Fix Committed

This bug is believed to be fixed in cloud-init in 17.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers