Skip to content

Legacy facts present in Chocolatey provider files cause errors on Non-Windows #372

Open
@chambersmp

Description

@chambersmp

Summary

The operatingsystem fact is disabled by default in Puppet 8.

This leads to an intermittent issue where the provider may be loaded for Unix systems instead of only windows.

See confine and defaultfor:

confine operatingsystem: :windows
defaultfor operatingsystem: :windows
.

Fix

These should be change to os.name.

Legacy Fact Ref

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions