mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 14:20:45 +00:00
fix: fix error on empty or none string src in rule CheckScmInSrc (#608)
This commit is contained in:
parent
a77609197f
commit
adc1801724
@ -16,7 +16,8 @@ class CheckScmInSrc(StandardBase):
|
|||||||
|
|
||||||
if not errors:
|
if not errors:
|
||||||
for role in roles:
|
for role in roles:
|
||||||
if isinstance(role, AnsibleMapping) and "+" in role.get("src"):
|
src = role.get("src")
|
||||||
|
if isinstance(role, AnsibleMapping) and bool(src) and "+" in 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