diff --git a/ipaserver/plugins/schema.py b/ipaserver/plugins/schema.py index 96e84d236..64f09852a 100644 --- a/ipaserver/plugins/schema.py +++ b/ipaserver/plugins/schema.py @@ -592,7 +592,7 @@ class param(BaseParam): obj[key] = unicode(value) elif key in ('exclude', 'include'): - obj[key] = list(unicode(v) for v in value) + obj[key] = sorted(list(unicode(v) for v in value)) if isinstance(metaobj, Command): if key == 'alwaysask': obj.setdefault(key, value)