pull/83088/head
Brian Coca 7 months ago
parent 7c243a4255
commit e1ec965a25

@ -76,7 +76,7 @@ def main():
# Get current settings. # Get current settings.
rc, out, err = module.run_command([dpkg, '--get-selections', name], check_rc=True) rc, out, err = module.run_command([dpkg, '--get-selections', name], check_rc=True)
if rc == 0: if rc == 0 and out:
current = out.split()[1] current = out.split()[1]
elif 'no packages found matching' in err: elif 'no packages found matching' in err:
current = 'not found' current = 'not found'

Loading…
Cancel
Save