Merge pull request #4594 from mscherer/fix_4587
fix distribution detection in apt_repository module, so it also work on mint as it work on Debian, partially fix #4587
This commit is contained in:
commit
f694ef315a
1 changed files with 2 additions and 1 deletions
|
@ -349,7 +349,8 @@ def main():
|
|||
update_cache = module.params['update_cache']
|
||||
sourceslist = None
|
||||
|
||||
if isinstance(distro, aptsources.distro.DebianDistribution):
|
||||
if isinstance(distro, aptsources.distro.DebianDistribution) or \
|
||||
isinstance(distro, aptsources.distro.Distribution):
|
||||
sourceslist = SourcesList()
|
||||
elif isinstance(distro, aptsources.distro.UbuntuDistribution):
|
||||
sourceslist = UbuntuSourcesList(add_ppa_signing_keys_callback=get_add_ppa_signing_key_callback(module))
|
||||
|
|
Loading…
Reference in a new issue