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/cmd | |
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/cmd')
-rwxr-xr-x | cloudinit/cmd/main.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cloudinit/cmd/main.py b/cloudinit/cmd/main.py index f28fda15..f16c59a7 100755 --- a/cloudinit/cmd/main.py +++ b/cloudinit/cmd/main.py @@ -219,11 +219,11 @@ def attempt_cmdline_url(path, network=True, cmdline=None) -> Tuple[int, str]: is_cloud_cfg = False if is_cloud_cfg: if cmdline_name == "url": - LOG.warning( - "DEPRECATED: `url` kernel command line key is" - " deprecated for providing cloud-config via URL." - " Please use `cloud-config-url` kernel command line" - " parameter instead" + util.deprecate( + deprecated="The kernel command line key `url`", + deprecated_version="22.3", + extra_message=" Please use `cloud-config-url` " + "kernel command line parameter instead", ) else: if cmdline_name == "cloud-config-url": |