# HG changeset patch # User Thierry Florac # Date 1521102219 -3600 # Node ID 09f49ce8dfd8ab705bfa2b0d3892a2ddc291968f # Parent eed80a1937fe4cb09adb4ce92a97a520b80d2fa3 Added 'set' to supported interfaces argument type diff -r eed80a1937fe -r 09f49ce8dfd8 src/pyams_utils/context.py --- a/src/pyams_utils/context.py Sun Mar 11 11:23:46 2018 +0100 +++ b/src/pyams_utils/context.py Thu Mar 15 09:23:39 2018 +0100 @@ -36,7 +36,7 @@ """ def __init__(self, ifaces, config): - if not isinstance(ifaces, (list, tuple)): + if not isinstance(ifaces, (list, tuple, set)): ifaces = (ifaces,) self.interfaces = ifaces