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

tmp = dict() tmp = dict()
tmpiface = dict() tmpiface = dict()
ifaces = 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'}) env={'WG_HIDE_KEYS': 'always' if hide_keys else 'never'})
for line in out.splitlines(): for line in out.splitlines():
if line.startswith('interface: '): if line.startswith('interface: '):

Loading…
Cancel
Save