Made the requested changes

This commit is contained in:
Hilberding, Rob 2017-09-13 13:19:12 -05:00
parent 6885c6b458
commit b71e7e673f

View File

@ -65,7 +65,7 @@ def present(name,
else:
if 'test' in __opts__ and __opts__['test']:
kwargs['test'] = True
result = __salt__['beacons.modify'](name, beacon_data, **kwargs)
result = __salt__['beacons.modify'](name, beacon_data)
ret['comment'].append(result['comment'])
ret['changes'] = result['changes']
else:
@ -97,7 +97,7 @@ def present(name,
if save == True:
result = __salt__['beacons.save']()
ret['comment'].append('Beacons saved'.format(name))
ret['comment'].append('Beacon {0} saved'.format(name))
ret['comment'] = '\n'.join(ret['comment'])
return ret
@ -143,7 +143,7 @@ def absent(name,
if save == True:
result = __salt__['beacons.save']()
ret['comment'].append('Beacons saved'.format(name))
ret['comment'].append('Beacon {0} saved'.format(name))
ret['comment'] = '\n'.join(ret['comment'])
return ret