Chocolatey - package version

Bob <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
I am using CFEngine 3.18 on Windows 10.  I am trying to install Python 
3.11.0 and I would like it to be exactly that version. Example:

packages:
  have_choco_exe::
    "python3"
      package_policy => "add",
      package_method => choco,
      version => "3.11.0";

body package_method choco
{
  package_changes => "individual";
  package_list_command => "C:\ProgramData\Chocolatey\bin\choco.exe list 
--localonly";
  package_list_version_regex => ".*\s+ (.*)";
  package_list_name_regex => "^(.*)\s+.*";
  package_installed_regex => ".*";
  package_add_command => "C:\ProgramData\Chocolatey\bin\choco.exe install 
-y";
}

I get the following error:
Mixed old and new package promise attributes inside one package promise

I may need to add "--version" to the "package_add_command", but I don't see 
a way to tell choco.exe to use the "latest" version of a package when I am 
installing other packages (notepad++, for example). 

Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/fe147143-3e3e-454b-bc03-dc059e1f87bdn%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.