paulbsd-salt/states/_states/software.py

14 lines
334 B
Python
Raw Normal View History

2021-11-14 13:37:49 +01:00
#!/usr/bin/python3
def cleanup(name=None, path=None, version=None):
ret = {'name': name,
'changes': {},
'result': True,
'comment': 'No changes been made'}
res = __salt__['software.cleanup'](name, path, version)
if res is not None:
ret['changes']["folders"] = res
return ret