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

Value running is interpreted as a string, not a bool

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.4.3
    • Fix Version/s: None
    • Component/s: Modules
    • Labels:
      None
    • Environment:

      Ubuntu 12.04.4 with Puppet 3.4.3

    • Template:

      Description

      When using the validate_bool function on the argument 'running' or 'stopped' Puppet errors out with the following error -

      Error: "running" is not a boolean. It looks to be a String at...

      In the Puppet Type Reference documentation it references that "valid values are stopped (also called false), running (also called true)."

      So I expected to be able to call validate_bool(stopped) or validate_bool(running) and have it return correctly. but it said these were strings.

      Is this the correct behavior?

        Attachments

          Activity

            People

            • Assignee:
              andy Andrew Parker
              Reporter:
              RyPeck Ryan Peck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support