Skip to content

msi_full_path not translated to value in windows.pp #814

@shbakesas

Description

@shbakesas

Line 51 of windows.pp has:

    $fileStream = [system.io.file]::openread('${msi_full_path}');

This is causing the assertion to fail because '${msi_full_path}' is being sent as the actual string instead of the value of the variable. Since $msi_full_path is not defined on the local OS, the assertion fails:

Debug: /Stage[main]/Datadog_agent::Windows/Exec[assert-acceptable-msi]/unless: Exception calling "OpenRead" with "1" argument(s): "Could not find file 'C:\Windows\system32\${msi_full_path}'."

This line should be updated to use double-quotes instead of single-quotes.
$fileStream = [system.io.file]::openread("${msi_full_path}");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions