From: jepst Date: Wed, 10 Dec 2014 14:17:56 +0000 (-0500) Subject: pybind: Avoid type error in crush rule (str, not an int) X-Git-Tag: v9.1.0~307^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=34ef9377f2e9fab03cdfdf1dde42b379a20ec59e;p=ceph.git pybind: Avoid type error in crush rule (str, not an int) * Make crush_rule parameter an int in create_pool Signed-off-by: Jeff Epstein Signed-off-by: Kefu Chai --- diff --git a/src/pybind/rados.py b/src/pybind/rados.py index de2c1f71de93..2a9d17cd6494 100644 --- a/src/pybind/rados.py +++ b/src/pybind/rados.py @@ -584,7 +584,7 @@ Rados object in state %s." % self.state) return c_name.value break - @requires(('pool_name', str), ('auid', opt(int)), ('crush_rule', opt(str))) + @requires(('pool_name', str), ('auid', opt(int)), ('crush_rule', opt(int))) def create_pool(self, pool_name, auid=None, crush_rule=None): """ Create a pool: @@ -598,7 +598,7 @@ Rados object in state %s." % self.state) :param auid: the id of the owner of the new pool :type auid: int :param crush_rule: rule to use for placement in the new pool - :type crush_rule: str + :type crush_rule: int :raises: :class:`TypeError`, :class:`Error` """