mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 15:45:20 +01:00
Simplify startswith()
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
ebb4d94da8
commit
6d421381a7
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class ActionModule(ActionBase):
|
||||||
def _get_absolute_path(self, path):
|
def _get_absolute_path(self, path):
|
||||||
original_path = path
|
original_path = path
|
||||||
|
|
||||||
if path.startswith('rsync://') or path.startswith('/') or ':' in path:
|
if path.startswith(('rsync://', '/')) or ':' in path:
|
||||||
return path
|
return path
|
||||||
|
|
||||||
if self._task._role is not None:
|
if self._task._role is not None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue