This is embarasing, looks like the wrong backend function was being used
This commit is contained in:
Thomas S Hatch 2012-11-10 20:48:46 -07:00
parent 516a8e446e
commit fa6aca4ea8

View File

@ -77,7 +77,7 @@ def absent(name):
ret['comment'] = 'Module {0} is set to be unloaded' ret['comment'] = 'Module {0} is set to be unloaded'
ret['comment'] = ret['comment'].format(name) ret['comment'] = ret['comment'].format(name)
return ret return ret
for mod in __salt__['kmod.load'](name): for mod in __salt__['kmod.remove'](name):
ret['changes'][mod] = 'removed' ret['changes'][mod] = 'removed'
for change in ret['changes']: for change in ret['changes']:
if name in change: if name in change: