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

Extend puppet type check for install_method #492

Merged
merged 1 commit into from Sep 26, 2020
Merged

Extend puppet type check for install_method #492

merged 1 commit into from Sep 26, 2020

Conversation

bastelfreak
Copy link
Member

previously we had a case statement that checked for 3 values in a
string. We now uplift those 3 values into an enum to make validation
better and easier to test.

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak
Copy link
Member Author

I did not align the whitespaces here because that just creates a huge huge diff without any benefit.

@igalic
Copy link

igalic commented Sep 26, 2020

I did not align the whitespaces here because that just creates a huge huge diff without any benefit.

until we find a better waytto make unaligned puppet code more readable, we should do alignment fixes in a separate commit

@bastelfreak
Copy link
Member Author

okay, will do

@bastelfreak
Copy link
Member Author

instead of realigning everything I moved the enum into a custom type. benefit: we can now update the enum at a single place to adjust it for every of our exporters \o/

previously we had a case statement that checked for 3 values in a
string. We now uplift those 3 values into an enum to make validation
better and easier to test.
igalic
igalic previously requested changes Sep 26, 2020
Copy link

@igalic igalic left a comment

Choose a reason for hiding this comment

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

i'd like to see less missing documentation

REFERENCE.md Show resolved Hide resolved
@igalic igalic dismissed their stale review September 26, 2020 10:59

out of scope

Copy link

@igalic igalic left a comment

Choose a reason for hiding this comment

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

🙋🏻‍♀️

manifests/daemon.pp Show resolved Hide resolved
@bastelfreak bastelfreak merged commit f793981 into voxpupuli:master Sep 26, 2020
@bastelfreak bastelfreak deleted the types branch September 26, 2020 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants