Bladeren bron

module: delete: be more clear about deletion

tags/v0.9
Maximilian Eschenbacher 6 jaren geleden
bovenliggende
commit
72827a07ef
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. +3
    -2
      _modules/wireguard.py

+ 3
- 2
_modules/wireguard.py Bestand weergeven

@@ -17,9 +17,10 @@ def create(name):

def delete(name):
"""
delete a wireguard interface. This will fail if it does not exist.
delete a interface (not neccessarily a wireguard interface). This will fail
if it does not exist.
"""
return __salt__['cmd.run']('ip link del %s type wireguard' % (name,))
return __salt__['cmd.run']('ip link del %s' % (name,))


def show(name=None, peer=None):

Laden…
Annuleren
Opslaan