Skip to content

Commit 252da28

Browse files
author
Slavek Kabrda
authored
Use proper version string for package.ensure on Windows (#741)
1 parent 6b69cc1 commit 252da28

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

manifests/windows.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
if $agent_version == 'latest' {
6464
$ensure_version = 'installed'
6565
} else {
66-
$ensure_version = $agent_version
66+
# While artifacts contain X.Y.Z in their name, their installed Windows versions are actually X.Y.Z.1
67+
$ensure_version = "${agent_version}.1"
6768
}
6869

6970
$hostname_option = $hostname ? { '' => {}, default => { 'HOSTNAME' => $hostname } }

0 commit comments

Comments
 (0)