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

Set optional param to undef to fix failing test (REVERTED IN 6.0.1) #449

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

yachub
Copy link
Contributor

@yachub yachub commented Jul 30, 2021

Pull Request (PR) description

This fixes a test failure detected by the recently added GitHub Actions workflow.

This Pull Request (PR) fixes the following issues

Fixes #450

@genebean
Copy link
Contributor

genebean commented Jul 30, 2021

Holding review & merge while an associated issue is filed and the commit message is updated.

@yachub yachub force-pushed the fix_optional_param_default branch from e513171 to 63f3124 Compare July 30, 2021 13:42
@yachub yachub force-pushed the fix_optional_param_default branch from 63f3124 to 33c1e64 Compare July 30, 2021 13:53
@genebean genebean merged commit f4a3ebd into voxpupuli:master Jul 30, 2021
@@ -35,7 +35,7 @@
Boolean $checksum = true,
Optional[String] $digest_url = undef,
Optional[String] $digest_string = undef,
Optional[Enum['none', 'md5', 'sha1', 'sha2','sha256', 'sha384', 'sha512']] $digest_type = 'md5', # bad default!
Optional[Enum['none', 'md5', 'sha1', 'sha2','sha256', 'sha384', 'sha512']] $digest_type = undef,
Copy link
Member

Choose a reason for hiding this comment

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

Correct fix was possibly just

Suggested change
Optional[Enum['none', 'md5', 'sha1', 'sha2','sha256', 'sha384', 'sha512']] $digest_type = undef,
Enum['none', 'md5', 'sha1', 'sha2','sha256', 'sha384', 'sha512']] $digest_type = 'md5',

??

Not sure. Maybe we could drop the camptocamp/archive compatibility code at some point???

@alexjfisher alexjfisher changed the title Set optional param to undef to fix failling test Set optional param to undef to fix failing test (REVERTED IN 6.0.1) Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix archive::download Param Default Value
3 participants