mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-28 07:40:36 +00:00
fix: regression in CheckScmInSrc rule (#610)
This commit is contained in:
parent
adc1801724
commit
15e3909660
@ -16,8 +16,10 @@ class CheckScmInSrc(StandardBase):
|
||||
|
||||
if not errors:
|
||||
for role in roles:
|
||||
src = role.get("src")
|
||||
if isinstance(role, AnsibleMapping) and bool(src) and "+" in src:
|
||||
if (
|
||||
isinstance(role, AnsibleMapping) and bool(role.get("src"))
|
||||
and "+" in role.get("src")
|
||||
):
|
||||
errors.append(self.Error(role["__line__"], self.helptext))
|
||||
|
||||
return self.Result(candidate.path, errors)
|
||||
|
Loading…
Reference in New Issue
Block a user