mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-24 13:50:41 +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:
|
if not errors:
|
||||||
for role in roles:
|
for role in roles:
|
||||||
src = role.get("src")
|
if (
|
||||||
if isinstance(role, AnsibleMapping) and bool(src) and "+" in src:
|
isinstance(role, AnsibleMapping) and bool(role.get("src"))
|
||||||
|
and "+" in role.get("src")
|
||||||
|
):
|
||||||
errors.append(self.Error(role["__line__"], self.helptext))
|
errors.append(self.Error(role["__line__"], self.helptext))
|
||||||
|
|
||||||
return self.Result(candidate.path, errors)
|
return self.Result(candidate.path, errors)
|
||||||
|
Loading…
Reference in New Issue
Block a user