diff options
author | Brett Holman <brett.holman@canonical.com> | 2023-02-24 08:00:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 08:00:44 -0700 |
commit | 6100fda632f63605981636c0900e1e0b8b354979 (patch) | |
tree | dab05196ac0cc299acd0c672053e3506c0ade213 /cloudinit/stages.py | |
parent | 46fcd03187d70f405c748f7a6cfdb02ecb8c6ee7 (diff) | |
download | cloud-init-git-6100fda632f63605981636c0900e1e0b8b354979.tar.gz |
log: Add standardized deprecation tooling (SC-1312) (#2026)
- Add deprecation log level
- Add deprecation utilities for structured format and messaging
- Update existing deprecation log sites, add deprecated versions
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r-- | cloudinit/stages.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py index 9494a0bf..a063e778 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -758,10 +758,11 @@ class Init: return if isinstance(enabled, str): - LOG.debug( - "Use of string '%s' for 'vendor_data:enabled' field " - "is deprecated. Use boolean value instead", - enabled, + util.deprecate( + deprecated=f"Use of string '{enabled}' for " + "'vendor_data:enabled' field", + deprecated_version="23.1", + extra_message="Use boolean value instead.", ) LOG.debug( |