diff options
author | Wesley Wiedenmeier <wesley.wiedenmeier@gmail.com> | 2017-02-17 02:16:20 -0600 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-03-10 13:39:39 -0500 |
commit | 9044a05469d1b138d4ee34c55c7f5bdb6f97164d (patch) | |
tree | 52927263680539265102559c0707ba531131c6b8 /cloudinit/version.py | |
parent | df88d29ddf66057dd6912816cd8be2dc1c7fa443 (diff) | |
download | vyos-cloud-init-9044a05469d1b138d4ee34c55c7f5bdb6f97164d.tar.gz vyos-cloud-init-9044a05469d1b138d4ee34c55c7f5bdb6f97164d.zip |
Add feature flags to cloudinit.version.
This exposes a mechanism for users of cloud-init to determine if
a version has a specific feature, and adds documentation to that affect.
We list an existing feature NETWORK_CONFIG_V1 as an example.
Also add a 'features' subcommand for listing these to stdout.
Diffstat (limited to 'cloudinit/version.py')
-rw-r--r-- | cloudinit/version.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cloudinit/version.py b/cloudinit/version.py index 92bace1a..e61597d2 100644 --- a/cloudinit/version.py +++ b/cloudinit/version.py @@ -6,6 +6,11 @@ __VERSION__ = "0.7.9" +FEATURES = [ + # supports network config version 1 + 'NETWORK_CONFIG_V1', +] + def version_string(): return __VERSION__ |