Browse Source

module: _wg_ifaces: use wg show all

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

+ 1
- 1
_modules/wireguard.py View File

@@ -126,7 +126,7 @@ def _wg_ifaces(hide_keys=True):
tmp = dict()
tmpiface = dict()
ifaces = dict()
out = __salt__['cmd.run']('wg',
out = __salt__['cmd.run']('wg show all',
env={'WG_HIDE_KEYS': 'always' if hide_keys else 'never'})
for line in out.splitlines():
if line.startswith('interface: '):

Loading…
Cancel
Save