mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
zypper_repository: Remove trailing "/". Identifies "logically" identical repos.
Example: ftp://download.nvidia.com/opensuse/12.2 == ftp://download.nvidia.com/opensuse/12.2/
This commit is contained in:
parent
dc1f233e8d
commit
bce8ac55b3
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ def repo_exists(module, **kwargs):
|
||||||
|
|
||||||
for k, v in realrepo.items():
|
for k, v in realrepo.items():
|
||||||
if k in repocmp:
|
if k in repocmp:
|
||||||
if v != repocmp[k]:
|
if v.rstrip("/") != repocmp[k].rstrip("/"):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue