protect another portion against None name

reviewable/pr18780/r1
Brian Coca 8 years ago
parent 3c76c3669e
commit f176b767c6

@ -410,6 +410,7 @@ def main():
out += out_pip out += out_pip
err += err_pip err += err_pip
if pkg:
for pkg in name: for pkg in name:
is_present = _is_present(pkg, version, out.split()) is_present = _is_present(pkg, version, out.split())
if (state == 'present' and not is_present) or (state == 'absent' and is_present): if (state == 'present' and not is_present) or (state == 'absent' and is_present):

Loading…
Cancel
Save