def validate_max_staleness(option, value):
 if ((value == (-1)) or (value == '-1')):
  return (-1)
 return validate_positive_integer(option, value)

def validate_max_staleness ( option , value ) : if ( ( value == ( - 1 ) ) or ( value == '-1' ) ) : return ( - 1 ) return validate_positive_integer ( option , value )
validates maxstalenessseconds according to the max staleness spec .