When looking for job ids to remove based on the tag_name the comparision was comparing an INT to a STR, so the correct job id was not being returned.

This commit is contained in:
Gareth J. Greenaway 2017-11-28 11:02:04 -08:00
parent f2f6817e86
commit 99e436add4
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -178,7 +178,7 @@ def atrm(*args):
ret = {'jobs': {'removed': opts, 'tag': None}}
else:
opts = list(list(map(str, [i['job'] for i in atq()['jobs']
if i['job'] in args])))
if str(i['job']) in args])))
ret = {'jobs': {'removed': opts, 'tag': None}}
# Shim to produce output similar to what __virtual__() should do