summaryrefslogtreecommitdiff
path: root/keymanager/src
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2016-07-05 17:18:33 +0200
committerRuben Pollan <meskio@sindominio.net>2016-07-05 17:22:55 +0200
commit83c246f9877f4e381e0eb97e2b920f4c0bd37ab9 (patch)
tree9afb634df8257042ab6a298be13c8d54f114e78e /keymanager/src
parent5409c0dec9d1d4a562cc69798e36d534b6690d30 (diff)
[feat] make ValidationLevels iterable
Needed by bytmask cli. - Related: #7965
Diffstat (limited to 'keymanager/src')
-rw-r--r--keymanager/src/leap/keymanager/validation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/keymanager/src/leap/keymanager/validation.py b/keymanager/src/leap/keymanager/validation.py
index 8cf96da1..16a897e9 100644
--- a/keymanager/src/leap/keymanager/validation.py
+++ b/keymanager/src/leap/keymanager/validation.py
@@ -79,6 +79,9 @@ class _ValidationLevels(object):
"""
return getattr(self, name)
+ def __iter__(self):
+ return iter(self._level_names)
+
ValidationLevels = _ValidationLevels()