Commit d29d142a by Michael DeHaan

Merge pull request #2911 from sergevanginderachter/apt-repo-ppa-bug

fix an idempotence bug in apt-repository where 'ppa' is used in a plain http://ppa. ....
parents f2a8c0d6 13a9613b
......@@ -103,7 +103,7 @@ def main():
state = module.params['state']
repo_url = repo
if 'ppa' in repo_url:
if 'ppa:' in repo_url and not 'http://' in repo_url:
# looks like ppa:nginx/stable
repo_url = repo.split(':')[1]
elif len(repo_url.split(' ')) > 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment