ansible/ansible — pull request #8933 by alxgu (2014-09-09 07:39:55+00:00)
Title: zypper_repository: Remove trailing "/"

##### Issue Type:

“Bugfix Pull Request”

##### Ansible Version:

ansible 1.8 last updated 2014/09/09 09:26:05 (GMT +200)

##### Environment:

SLES 11.3

##### Summary:

ftp://download.nvidia.com/opensuse/12.2 and ftp://download.nvidia.com/opensuse/12.2/ are logical identical, but the module does not recognize it.

##### Steps To Reproduce:
Use following to line in your playbook. First add the repo without the trailing "/" and the next line should remove the repo, but with the trailing "/".

- zypper_repository: name=nvidia-repo repo='ftp://download.nvidia.com/opensuse/12.2' state=present
- zypper_repository: name=nvidia-repo repo='ftp://download.nvidia.com/opensuse/12.2/' state=absent

##### Expected Results:

The second "statement" should remove the repository.

##### Actual Results:

It did not remove it, because the second repo is not "identical".