Pārlūkot izejas kodu

module: showconfg: hide_keys does not have any effect

tags/v0.9
Maximilian Eschenbacher pirms 6 gadiem
vecāks
revīzija
567789fe1a
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. +2
    -3
      _modules/wireguard.py

+ 2
- 3
_modules/wireguard.py Parādīt failu

@@ -33,9 +33,8 @@ def show(name=None, peer=None):
else:
return _wg_ifaces().get(name)

def showconf(name, hide_keys=True):
return __salt__['cmd.run']('wg showconf %s' % (name,),
env={'WG_HIDE_KEYS': 'always' if hide_keys else 'never'})
def showconf(name):
return __salt__['cmd.run']('wg showconf %s' % (name,))

def set(name, listen_port=None, fwmark=None, private_key=None, peer=None,
preshared_key=None, endpoint=None, persistent_keepalive=None,

Notiek ielāde…
Atcelt
Saglabāt