Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2704

hash.each() converting undef to empty string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: PUP 3.6.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 14.04, amd64, ruby 1.9.3

    • Template:

      Description

      example.pp

      $foo = { bar => undef }
      notice $foo["bar"] == undef
      $foo.each() |$key,$val| {
        notice $val == undef
      }
      

      results in

      true
      false
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            matt@monaco.cx Matthew Monaco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support