more of @element

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

No files matched your search

+3
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"""