From 07e4329949318a1eafd9ce3d98c6456d0d0c6361 Mon Sep 17 00:00:00 2001 From: Luis Pabon Date: Wed, 29 May 2013 21:35:29 -0400 Subject: pep8 changes to constraint.py We need the code to pass pep8 tests so that we can enable pep8 in Jenkins Change-Id: I31e4bd10fad65735fabceaedcb1a3bd10e120153 Signed-off-by: Luis Pabon Reviewed-on: http://review.gluster.org/5114 Reviewed-by: Peter Portante Tested-by: Peter Portante --- gluster/swift/common/constraints.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gluster') diff --git a/gluster/swift/common/constraints.py b/gluster/swift/common/constraints.py index 1ae8cbb..acdd3f5 100644 --- a/gluster/swift/common/constraints.py +++ b/gluster/swift/common/constraints.py @@ -23,6 +23,7 @@ from gluster.swift.common import Glusterfs, ring MAX_OBJECT_NAME_COMPONENT_LENGTH = 255 + def set_object_name_component_length(len=None): global MAX_OBJECT_NAME_COMPONENT_LENGTH @@ -31,13 +32,14 @@ def set_object_name_component_length(len=None): elif hasattr(swift.common.constraints, 'constraints_conf_int'): MAX_OBJECT_NAME_COMPONENT_LENGTH = \ swift.common.constraints.constraints_conf_int( - 'max_object_name_component_length', 255) + 'max_object_name_component_length', 255) else: MAX_OBJECT_NAME_COMPONENT_LENGTH = 255 return set_object_name_component_length() + def get_object_name_component_length(): return MAX_OBJECT_NAME_COMPONENT_LENGTH -- cgit