diff --git a/utils/galaxyfy.py b/utils/galaxyfy.py index a0f0226fd4fe42c1517f1062d8a3ad1821b13de9..cdca17a87bebe976db2c42e02a6c47f2fe8e63b4 100644 --- a/utils/galaxyfy.py +++ b/utils/galaxyfy.py @@ -35,8 +35,7 @@ def galaxyfy_playbook(project_prefix, collection_prefix, lines): changeable = False include_role = False for line in lines: - line = line.rstrip() - stripped = line.lstrip() + stripped = line.strip() if stripped.startswith("- name:") or \ stripped.startswith("- block:"): changeable = True