1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible
Marius Gedminas 577d0e43ba apt_repository: check for enabled repositories correctly
Fixes #20754.

Details: UbuntuSourcesList.add_source() had a quick check for PPAs being
already present in the source lists.  The check was looking for the PPAs
URL to be present in self.repo_urls, which should contain all valid and
enabled repositories.

The enabled check in repo_urls was incorrect.  It was checking the tuple's
2nd item (which means "valid") and ignoring the 3rd item (which means
"enabled").

self.files contains tuples (line_number, valid, enabled, source_line,
comment_text).  Ideally it would be using named tuples instead of
indexing, to avoid bugs like that, but Python 2.4 didn't have named
tuples, so we can't do that (yet).
2017-02-07 18:42:57 -08:00
..
cli PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
compat Fix typo when choosing KqueueSelector 2017-02-06 08:46:58 -08:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors adds feature to all modules to be run locally (#18763) 2016-12-15 15:47:29 -05:00
executor refactoring async 2017-02-06 19:32:00 -05:00
galaxy PEP 8 E111 & E114 cleanup. (#20838) 2017-01-30 15:01:47 -08:00
inventory Convert error to the native text type before writing to stderr 2017-02-07 18:01:58 -05:00
module_utils Add missing iteritems definition (#21106) 2017-02-07 18:31:40 -05:00
modules apt_repository: check for enabled repositories correctly 2017-02-07 18:42:57 -08:00
parsing improve error message on conflicting actions. Fixes #21057 (#21059) 2017-02-06 22:48:06 +00:00
playbook refactoring async 2017-02-06 19:32:00 -05:00
plugins starts cli if root user login is used for junos terminal (#20761) 2017-02-07 10:57:44 +00:00
template PEP 8 E111 & E114 cleanup. (#20838) 2017-01-30 15:01:47 -08:00
utils ovirt: Add support to diff (#20698) 2017-02-02 13:50:52 -05:00
vars PEP 8 fix. 2017-01-31 13:38:05 -08:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Module utils default path (#20913) 2017-02-02 17:48:53 -08:00
release.py Bumping devel version to 2.3.0 2016-10-03 11:46:31 -05:00
test-requirements.txt Switch tests to pytest and ansible-test. 2017-01-11 12:34:59 -08:00