diff options
author | Dominic Schlegel <dominic.schlegel@hostpoint.ch> | 2019-10-17 14:36:40 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2019-10-17 14:36:40 +0000 |
commit | 7e699256b319cdf41e747211763e593a6b5f3393 (patch) | |
tree | 25b780ce0db9a766d017a5c9913ee723fd82731e /cloudinit/config/cc_apt_pipelining.py | |
parent | fac98983187c0984aa79c569c4b76cab90fd6f47 (diff) | |
download | vyos-cloud-init-7e699256b319cdf41e747211763e593a6b5f3393.tar.gz vyos-cloud-init-7e699256b319cdf41e747211763e593a6b5f3393.zip |
replace any deprecated log.warn with log.warning
Commit 6797e822959b84c98cf73e02b2a6e3d6ab3fd4fe replaced
the LOG.warn calls that linters were warning about; this
also replaces calls that linters would not have recognised
(as `log` is generally a parameter in these scenarios).
LP: #1508442
Diffstat (limited to 'cloudinit/config/cc_apt_pipelining.py')
-rw-r--r-- | cloudinit/config/cc_apt_pipelining.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_apt_pipelining.py b/cloudinit/config/cc_apt_pipelining.py index 459332ab..225d0905 100644 --- a/cloudinit/config/cc_apt_pipelining.py +++ b/cloudinit/config/cc_apt_pipelining.py @@ -59,7 +59,7 @@ def handle(_name, cfg, _cloud, log, _args): elif apt_pipe_value_s in [str(b) for b in range(0, 6)]: write_apt_snippet(apt_pipe_value_s, log, DEFAULT_FILE) else: - log.warn("Invalid option for apt_pipelining: %s", apt_pipe_value) + log.warning("Invalid option for apt_pipelining: %s", apt_pipe_value) def write_apt_snippet(setting, log, f_name): |