Pārlūkot izejas kodu

states: peer_present: set endpoint

master
Maximilian Eschenbacher pirms 6 gadiem
vecāks
revīzija
d0f7c3963c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      _states/wireguard.py

+ 1
- 1
_states/wireguard.py Parādīt failu

@@ -80,7 +80,7 @@ def peer_present(name, interface, endpoint=None, persistent_keepalive=None,
ret['result'] = True
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)
ret['changes']['endpoint'] = dict(
old=show.get('endpoint'), new=endpoint)

Notiek ielāde…
Atcelt
Saglabāt