more of @element

This commit is contained in:
Erik Frojdh
2020-09-24 08:39:12 +02:00
parent d3fbfebeb7
commit 97fea10ee2
3 changed files with 37 additions and 22 deletions

View File

@ -122,6 +122,9 @@ def make_ip(arg):
def make_mac(arg):
return _make(arg, _slsdet.MacAddr)
def make_path(arg):
return _make(arg, Path)
def _make(arg, transform):
"""Helper function for make_mac and make_ip special cases for
dict, list and tuple. Otherwise just calls transform"""