Skip to content

Commit

Permalink
fix(apt): Don't warn on apt 822 source format (#5028)
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Mar 11, 2024
1 parent ccd438e commit 52c6abd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cloudinit/config/cc_apt_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,15 +708,15 @@ def generate_sources_list(cfg, release, mirrors, cloud):
)
if expected_content:
if expected_content != util.load_text_file(apt_sources_list):
LOG.warning(
LOG.info(
"Replacing %s to favor deb822 source format",
apt_sources_list,
)
util.write_file(
apt_sources_list, UBUNTU_DEFAULT_APT_SOURCES_LIST
)
else:
LOG.warning(
LOG.info(
"Removing %s to favor deb822 source format", apt_sources_list
)
util.del_file(apt_sources_list)
Expand Down
3 changes: 0 additions & 3 deletions tests/integration_tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ def verify_clean_log(log: str, ignore_deprecations: bool = True):
# Ubuntu lxd storage
"thinpool by default on Ubuntu due to LP #1982780",
"WARNING]: Could not match supplied host pattern, ignoring:",
# Old Ubuntu cloud-images contain /etc/apt/sources.list
"WARNING]: Replacing /etc/apt/sources.list to favor deb822 source"
" format",
# https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2041727
"Cannot call Open vSwitch: ovsdb-server.service is not running.",
]
Expand Down

0 comments on commit 52c6abd

Please sign in to comment.