summaryrefslogtreecommitdiff
path: root/lib/ansible/playbook/role/requirement.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-05-14 20:14:12 -0700
committerMatt Clay <matt@mystile.com>2020-05-14 21:06:16 -0700
commitd0484fbf74e77046766276e93e84298f7a972908 (patch)
treea481279077fc5fae0c2a8c0bf9ab06cf4ce89aa1 /lib/ansible/playbook/role/requirement.py
parentd8e0aadc0d630c776349b745243c20b62f22ebec (diff)
downloadansible-d0484fbf74e77046766276e93e84298f7a972908.tar.gz
Cleanup for Python 3.9 and pycodestyle compat.
Diffstat (limited to 'lib/ansible/playbook/role/requirement.py')
-rw-r--r--lib/ansible/playbook/role/requirement.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/playbook/role/requirement.py b/lib/ansible/playbook/role/requirement.py
index 3a206befc7..640840f9bb 100644
--- a/lib/ansible/playbook/role/requirement.py
+++ b/lib/ansible/playbook/role/requirement.py
@@ -108,7 +108,7 @@ class RoleRequirement(RoleDefinition):
else:
role = role.copy()
- if 'src'in role:
+ if 'src' in role:
# New style: { src: 'galaxy.role,version,name', other_vars: "here" }
if 'github.com' in role["src"] and 'http' in role["src"] and '+' not in role["src"] and not role["src"].endswith('.tar.gz'):
role["src"] = "git+" + role["src"]