← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1874875] [NEW] cloudinit.sources.NetworkConfigSource can be refactored to an enum

 

Public bug reported:

It is currently implemented as a namedtuple, because it was written when
the codebase supported Python 2 (where using an enum would have
introduced a new dependency).  As enum is in the stdlib in all our
supported Python releases, we can now use it without that constraint.

** Affects: cloud-init
     Importance: Wishlist
         Status: Triaged


** Tags: bitesize

-- 
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/1874875

Title:
  cloudinit.sources.NetworkConfigSource can be refactored to an enum

Status in cloud-init:
  Triaged

Bug description:
  It is currently implemented as a namedtuple, because it was written
  when the codebase supported Python 2 (where using an enum would have
  introduced a new dependency).  As enum is in the stdlib in all our
  supported Python releases, we can now use it without that constraint.

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


Follow ups