← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1701527] [NEW] Exceptions in meta-mock.py need more care

 

Public bug reported:

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.

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Patch added: "0001-Fix-exception-handling.patch"
   https://bugs.launchpad.net/bugs/1701527/+attachment/4906560/+files/0001-Fix-exception-handling.patch

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1701527

Title:
  Exceptions in meta-mock.py need more care

Status in cloud-init:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1701527/+subscriptions


Follow ups