From d6291a0a89ae94752fa4f57a042872543e055e57 Mon Sep 17 00:00:00 2001 From: Andy Foston Date: Thu, 22 Aug 2024 16:32:42 +0100 Subject: [PATCH] Fix extracting source from expanded PPA line --- lib/ansible/modules/apt_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/apt_repository.py b/lib/ansible/modules/apt_repository.py index 551d0e76336..c576447ea1a 100644 --- a/lib/ansible/modules/apt_repository.py +++ b/lib/ansible/modules/apt_repository.py @@ -608,7 +608,7 @@ class UbuntuSourcesList(SourcesList): if source_line.startswith('ppa:'): source, ppa_owner, ppa_name = self._expand_ppa(source_line) _repositories.append(source) - source = self._expand_ppa(source_line, legacy=True) + source = self._expand_ppa(source_line, legacy=True)[0] _repositories.append(source) else: _repositories.append(source_line)