Browse Source

states: peer_present: set endpoint

master
Maximilian Eschenbacher 6 years ago
parent
commit
d0f7c3963c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      _states/wireguard.py

+ 1
- 1
_states/wireguard.py View File

ret['result'] = True ret['result'] = True
return ret return ret


if show.get('endpoint') and endpoint and show.get('endpoint') != endpoint:
if endpoint and show.get('endpoint', '') != endpoint:
__salt__['wg.set'](interface, peer=name, endpoint=endpoint) __salt__['wg.set'](interface, peer=name, endpoint=endpoint)
ret['changes']['endpoint'] = dict( ret['changes']['endpoint'] = dict(
old=show.get('endpoint'), new=endpoint) old=show.get('endpoint'), new=endpoint)

Loading…
Cancel
Save