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

Promise : Packages => wrong output when version set is numeric

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Medium
    • Resolution: Won't Do
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Centos 6.7 - CFEngine Community 3.7.2
    • Platform:
      RHEL or CentOS

      Description

      This appears to be a wrong check if the package is installed or not when the version is set with a numeric version.
      I've tried with few differents packages, here is the example with emacs.

      When I try this:

       packages:
               "emacs"
               policy => "present",
               package_module => yum,
               version => "latest";
      

      I got the right output : 10.34.xxx.xxx> -> info: Successfully installed package 'emacs'

      But when I try with a specific version like this :

       packages:
               "emacs"
               policy => "present",
               package_module => yum,
               version => "23.1";
      

      The output is : Jun 15 10:55:20 XXXXXXX : CFEngine(agent) Error installing package 'emacs'

      But the fact is that package is actually well installed with the right version.

        Attachments

          Activity

            People

            • Assignee:
              a10053 Marcin Pasinski
              Reporter:
              Stephane B Stephane B
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel