Browse Source

module: showconfg: hide_keys does not have any effect

tags/v0.9
Maximilian Eschenbacher 6 years ago
parent
commit
567789fe1a
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      _modules/wireguard.py

+ 2
- 3
_modules/wireguard.py View 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…
Cancel
Save