Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2402

services type promise service_policy values should be passed to the services bundle unaltered

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: 3.10.0
    • Component/s: Promise type: services
    • Labels:
      None

      Description

      The reference documentation of service promises lists 'enable' and 'disable' as possible values for the service_policy attribute. However, these values are not passed as is as argument to the service_bundle (be it the default standard_services bundle or a custom one) but are first translated to 'start' and 'stop' respectively.

      After some discussion it was agreed that it made the most sense to stop automatically translating desired states to different words. This change will be released with 3.10.0 and it will not be backported to previous versions.

        Attachments

        1. test.cf
          0.7 kB
        2. test2.cf
          0.7 kB
        3. test2.out
          0.5 kB

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                yann.soubeyrand Yann Soubeyrand
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel