diff options
author | Pavel Zuna <pzuna@redhat.com> | 2010-02-23 15:23:51 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-02-23 17:54:49 -0500 |
commit | 899f31835916c3ab6118eacb4f2b5e5f943087dc (patch) | |
tree | 4c8e5f8271cb6f629985c89055f242675101cef6 /ipalib/parameters.py | |
parent | 4dfbf460624e9b4a8623d8541dc6e35cef62fef7 (diff) | |
download | freeipa-899f31835916c3ab6118eacb4f2b5e5f943087dc.tar.gz freeipa-899f31835916c3ab6118eacb4f2b5e5f943087dc.tar.xz freeipa-899f31835916c3ab6118eacb4f2b5e5f943087dc.zip |
Fix bug where parameter cloning didn't clone validation rules.
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r-- | ipalib/parameters.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py index 3911d6e93..685248e21 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -505,7 +505,7 @@ class Param(ReadOnly): """ kw = dict(self.__clonekw) kw.update(overrides) - return self.__class__(self.name, **kw) + return self.__class__(self.name, *self.rules, **kw) def normalize(self, value): """ |