Convert int to float when checking config. consistency
Convert int to float when checking config. consistency

When reading the configuration file from RPC JSON, values without a
floating point are parsed as 'int', not as 'float', and later the
consistency check fails.

This patch adds an automatic conversion from 'int' to 'float' during
checking so that the improper JSON parsing is fixed.

Signed-off-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>
Reviewed-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>

leshchevds/ganeti,yiannist/ganeti,andir/ganeti,andir/ganeti,bitemyapp/ganeti,dimara/ganeti,apyrgio/ganeti,ganeti-github-testing/ganeti-test-1,leshchevds/ganeti,apyrgio/ganeti,grnet/snf-ganeti,ganeti/ganeti,leshchevds/ganeti,yiannist/ganeti,andir/ganeti,mbakke/ganeti,ganeti/ganeti,dimara/ganeti,ganeti-github-testing/ganeti-test-1,onponomarev/ganeti,ganeti/ganeti,mbakke/ganeti,bitemyapp/ganeti,grnet/snf-ganeti,yiannist/ganeti,onponomarev/ganeti,mbakke/ganeti