Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-9224) Add no progress flag #154

Merged
merged 1 commit into from
Jun 12, 2019
Merged

(MODULES-9224) Add no progress flag #154

merged 1 commit into from
Jun 12, 2019

Conversation

michaeltlombardi
Copy link

Prior to this commit calls to Chocolatey to install or to
upgrade packages did not specify the --no-progress flag
even when it is available. This would sometimes cause the
puppet logs to include numerous lines of packages being
downloaded which is not particularly helpful.

This commit helps to reduce the noise in the logs by making
sure that the --no-progress flag is specified by default
if the version of Chocolatey on the machine supports it.

If, however, the resource also specifies the package setting
verbose as true then the --no-progress flag will not be
passed as the user is specifically requesting verbose output.

This commit includes updates to the provider, common helpers,
and spec tests. It does not include any additional user facing
documentation as this is an improvement which reduces noise
but does not otherwise require configuration.

Copy link

@jpogran jpogran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, but I disagree that readme doesn't need to change. I think the explanation in the changelog should be just copypastad to https://github.com/puppetlabs/puppetlabs-chocolatey#passing-flags-with-package-settings

Prior to this commit calls to Chocolatey to install or to
upgrade packages did not specify the `--no-progress` flag
even when it is available. This would sometimes cause the
puppet logs to include numerous lines of packages being
downloaded which is not particularly helpful.

This commit helps to reduce the noise in the logs by making
sure that the `--no-progress` flag is specified by default
if the version of Chocolatey on the machine supports it.

If, however, the resource also specifies the package setting
`verbose` as true then the `--no-progress` flag will not be
passed as the user is specifically requesting verbose output.

This commit includes updates to the provider, common helpers,
and spec tests. It does not include any additional user facing
documentation as this is an improvement which reduces noise
but does not otherwise require configuration.
@jpogran jpogran merged commit 0944d5b into puppetlabs:master Jun 12, 2019
@eimlav eimlav added the feature label Jun 20, 2019
@michaeltlombardi michaeltlombardi deleted the ticket/master/MODULES-9224-no-progress-default branch August 16, 2019 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants