From 5d40f5bb1ccb20dc174ea048738b1971512e0780 Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Mon, 18 Dec 2017 12:24:35 +0800 Subject: [PATCH] Add missing information in docstring of validate_integer Add versionadded and raises information in docstring Change-Id: Ia5929dc81cfed927a7b5dd809c13d3ae7efdf699 --- oslo_utils/strutils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oslo_utils/strutils.py b/oslo_utils/strutils.py index be17ba8a..d03617da 100644 --- a/oslo_utils/strutils.py +++ b/oslo_utils/strutils.py @@ -446,6 +446,9 @@ def validate_integer(value, name, min_value=None, max_value=None): :param min_value: min_value of the integer :param max_value: max_value of the integer :returns: integer + :raises: ValueError if value is an invalid integer + + .. versionadded:: 3.33 """ try: value = int(str(value))