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

Remove unnecessary test on $service_ensure #88

Merged
merged 2 commits into from
Jul 13, 2020

Conversation

chrekh
Copy link
Contributor

@chrekh chrekh commented Jul 12, 2020

$service_ensure is required by init.pp to have type Stdlib::Ensure::Service, so there is
no need for this test.

$service_ensure is required by init.pp to have type Stdlib::Ensure::Service, so there is
no need for this test.
Copy link
Contributor

@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.

🙋🏻‍♀️

@@ -7,10 +7,6 @@
$service_manage = $chrony::service_manage,
$service_name = $chrony::service_name,
) inherits chrony {
Copy link
Contributor

Choose a reason for hiding this comment

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

why does this class inherit from chrony
that's really bad form for anything other than the params class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no idea. It has been that way since commit 74c0dc8 when the the file was added.

Copy link
Contributor

Choose a reason for hiding this comment

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

okay
let's remove those in a future PR

i'm pretty, and sure, there's a standard puppet lint that should be complaining about this

have we gotten module/pdk sync yet for this module?

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

If you want, you can also remove parameters from name, hasstatus and hasrestart since they match defaults.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

@igalic let's keep the inherits for a separate PR indeed. Any objections to merging this now?

@chrekh
Copy link
Contributor Author

chrekh commented Jul 13, 2020

Oops. I will have to change the tests also. Don't merge until I have fixed that.

The name defaults to the resource title, and both hasstatus ans hasrestart is default
true.
@igalic igalic merged commit 61129ad into voxpupuli:master Jul 13, 2020
@chrekh chrekh deleted the service-ensure branch July 13, 2020 12:24
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.

3 participants