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

XOR operator in Puppet Language

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Language
    • Template:
    • Team:
      Froyo
    • QA Risk Assessment:
      Needs Assessment

      Description

      Sometimes there are some configuration values which have both to be set in combination. So you want to check if both or none of them are set. Usually this would be done using XOR. But unfortunately there isn't such an operator in Puppet Language at the moment.

      Of course there are alternative ways to get to the same result:

      (($a and !$b) or ($b and !$a))

      But a native XOR operator would make it much easier and better to understand:

      $a xor $b

      So I think it would be very much appreciated if this operator will be implemented in Puppet Language.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            WebComPas PU
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support