Skip to content

Commit 9ec3e59

Browse files
author
Shakeel Mohamed
committed
fix changes to validators
1 parent 9fdeedb commit 9ec3e59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎splunklib/searchcommands/validators.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __call__(self, value):
6262
return value
6363

6464
def format(self, value):
65-
return self.__call__(value)
65+
return 't' if value else 'f'
6666

6767

6868
class Fieldname(Validator):
@@ -143,7 +143,7 @@ def __call__(self, value):
143143
return value
144144

145145
def format(self, value):
146-
return int(value)
146+
return str(int(value))
147147

148148

149149
class Duration(Validator):

0 commit comments

Comments
 (0)