3
\¼meˆ
ã @ sR d Z ddlZddlZddlmZ dZdZdZdZdZ dZ
eeef dœdd„Z
dS ) a?
Feature flags are used as a way to easily toggle configuration
**at build time**. They are provided to accommodate feature deprecation and
downstream configuration changes.
Currently used upstream values for feature flags are set in
``cloudinit/features.py``. Overrides to these values should be
patched directly (e.g., via quilt patch) by downstreams.
Each flag should include a short comment regarding the reason for
the flag and intended lifetime.
Tests are required for new feature flags, and tests must verify
all valid states of a flag, not just the default state.
é N)ÚDictTF)Úreturnc C s dd„ t jd jjƒ D ƒS )z@Return a dict of applicable features/overrides and their values.c S s* i | ]"}t jd |ƒrttjd |ƒ|“qS )z^[_A-Z0-9]+$zcloudinit.features)ÚreÚmatchÚgetattrÚsysÚmodules)Ú.0Úk© r ú/usr/lib/python3.6/features.pyú