Simplify startswith()

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Albert Pool 2020-06-21 21:53:28 +02:00 committed by GitHub
parent ebb4d94da8
commit 6d421381a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ class ActionModule(ActionBase):
def _get_absolute_path(self, path):
original_path = path
if path.startswith('rsync://') or path.startswith('/') or ':' in path:
if path.startswith(('rsync://', '/')) or ':' in path:
return path
if self._task._role is not None: