diff options
author | Matt Clay <matt@mystile.com> | 2020-05-14 20:14:12 -0700 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2020-05-14 21:06:16 -0700 |
commit | d0484fbf74e77046766276e93e84298f7a972908 (patch) | |
tree | a481279077fc5fae0c2a8c0bf9ab06cf4ce89aa1 /lib/ansible/playbook/role/requirement.py | |
parent | d8e0aadc0d630c776349b745243c20b62f22ebec (diff) | |
download | ansible-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.py | 2 |
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"] |