freeipa/ipalib
Petr Viktorin 521df77744 ipalib.config: Don't autoconvert values to float
When api.env is loaded, strings that "look like" floats got
auto-converted to floats.
This is wrong, as the conversion to float can lose precision.
Case in point: the api_version (e.g. '2.88') should never be
interpreted as float.

Do not automatically convert to float.

We have two numeric options: startup_timeout and wait_for_dns.
wait_for_dns is already converted to int when used in the code.
Convert startup_timeout to float explicitly when used, so
configuration that specified it with a decimal point continues
to work.

Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
2014-06-16 13:38:54 +02:00
..
plugins Add support for managedBy to tokens 2014-06-16 10:13:59 +02:00
__init__.py ipalib.frontend: Do API version check before converting arguments 2014-06-13 14:15:06 +02:00
aci.py ipalib.aci: Fix bugs in comparison 2014-06-04 10:10:08 +02:00
backend.py Switch client to JSON-RPC 2013-11-26 16:59:59 +01:00
base.py Allow indexing API object types by class 2014-03-25 14:18:12 +01:00
capabilities.py dns_name_values capability added 2014-06-03 15:55:32 +02:00
cli.py CLI conversion of DNSName type 2014-06-03 15:55:32 +02:00
config.py ipalib.config: Don't autoconvert values to float 2014-06-16 13:38:54 +02:00
constants.py Add version and API version 2014-06-09 16:27:41 +02:00
crud.py Add optional_create flag 2013-10-08 16:46:20 +02:00
errors.py ipalib.errors: Fix TaskTimeout doctest 2014-04-09 15:24:35 +02:00
frontend.py ipalib.frontend: Do API version check before converting arguments 2014-06-13 14:15:06 +02:00
krb_utils.py Pylint cleanup. 2013-01-29 15:39:49 +01:00
messages.py Add client capabilities, enable messages 2013-02-21 16:26:09 +01:00
output.py Allow primary keys to use different type than unicode. 2014-04-18 14:59:20 +02:00
parameters.py DNSNameParam parameter 2014-06-03 15:55:32 +02:00
pkcs10.py Add function for parsing friendly name from certificate requests. 2014-03-25 16:54:55 +01:00
plugable.py Add version and API version 2014-06-09 16:27:41 +02:00
request.py Remove deprecated i18n code from ipalib/request and all references to it. 2011-03-01 10:31:36 -05:00
rpc.py dns_name_values capability added 2014-06-03 15:55:32 +02:00
session.py Compliant client side session cookie behavior 2012-12-10 12:45:09 -05:00
text.py Add ConcatenatedLazyText object 2013-11-21 10:34:25 +01:00
util.py Fix indentation 2014-06-03 16:43:09 +02:00
x509.py Skip cert issuer validation in service and host commands in CA-less install. 2013-07-09 14:22:57 -04:00