Sfoglia il codice sorgente

module: showconfg: hide_keys does not have any effect

tags/v0.9
Maximilian Eschenbacher 6 anni fa
parent
commit
567789fe1a
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +2
    -3
      _modules/wireguard.py

+ 2
- 3
_modules/wireguard.py Vedi File

@@ -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,

Loading…
Annulla
Salva