diff options
author | Brett Holman <bholman.devel@gmail.com> | 2022-02-14 12:24:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 13:24:00 -0600 |
commit | 50195ec8d1052d2b7a80f47a3709ebc4e74d6764 (patch) | |
tree | 4abf46c23a891199f5e13aff3071feaebeb36d38 /cloudinit/config/cc_chef.py | |
parent | 9ba3ca6ce5013207737e431f52735c7eda3a2fbb (diff) | |
download | vyos-cloud-init-50195ec8d1052d2b7a80f47a3709ebc4e74d6764.tar.gz vyos-cloud-init-50195ec8d1052d2b7a80f47a3709ebc4e74d6764.zip |
use PEP 589 syntax for TypeDict (#1253)
Use PEP 589 syntax for TypeDict annotation.
Also fixes previously broken typing MetaSchema typing implementation.
Diffstat (limited to 'cloudinit/config/cc_chef.py')
-rw-r--r-- | cloudinit/config/cc_chef.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/config/cc_chef.py b/cloudinit/config/cc_chef.py index aaf7eaf1..fdb3a6e3 100644 --- a/cloudinit/config/cc_chef.py +++ b/cloudinit/config/cc_chef.py @@ -14,7 +14,7 @@ import os from textwrap import dedent from cloudinit import subp, temp_utils, templater, url_helper, util -from cloudinit.config.schema import get_meta_doc +from cloudinit.config.schema import MetaSchema, get_meta_doc from cloudinit.settings import PER_ALWAYS RUBY_VERSION_DEFAULT = "1.8" @@ -92,7 +92,7 @@ CHEF_EXEC_DEF_ARGS = tuple(["-d", "-i", "1800", "-s", "20"]) frequency = PER_ALWAYS distros = ["all"] -meta = { +meta: MetaSchema = { "id": "cc_chef", "name": "Chef", "title": "module that configures, starts and installs chef", |