Uploaded image for project: 'Hiera'
  1. Hiera
  2. HI-516

Hiera: comma-separated numbers treated as Fixnum and serialized strangely

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Incomplete
    • Affects Version/s: HI 1.3.4, HI 3.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      CentOS 6, Arch Linux testing

    • Template:

      Description

      Hi. I stumbled upon a weird behavior of hiera. If I put

      xyz: 1,2,3
      

      into a hiera yaml and then lookup the value of xyz, I get 123 (Fixnum type) instead of '1,2,3' (String type) ... this is kind of strange, isn't it? Especially since Ruby outputs a yaml key containing a string value '1,2,3' unquoted (xyz: 1,2,3) so this behavior seems inconsistent to me. Is this intentional? If so, is it documented somewhere?

      Thanks a lot!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dwatzke David Watzke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support