blablacar / dgr

Container build and runtime tool
Apache License 2.0
249 stars 21 forks source link

[confd] Scientific Notation for big integer #85

Closed mfouilleul closed 8 years ago

mfouilleul commented 8 years ago

Confd formats large integer with the scientific notation. Can be avoided by adding quotes on attributes (temporary fix).

n0rad commented 8 years ago

reopen if still happen with new templater

mfouilleul commented 8 years ago

Stil happen with the new templater:

Attributes file:

---
override:
  maxscale:
    binlogrouter:
      master_id: 3232235530

Template:

master-id={{ $data.maxscale.binlogrouter.master_id }}

Result in final file:

master-id=3.23223553e+09

It can be stil avoided by adding some quotes:

---
override:
  maxscale:
    binlogrouter:
      master_id: "3232235530"

Max.

n0rad commented 8 years ago

It seems to come from go parsing or templating. Since there is a workaround I will close the issue.

Reopen if you find a problematic use case.