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

fix puppet-lint warnings / switch to facts hash / drop legacy gluster versions 4.0 and older #203

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions manifests/volume.pp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
Boolean $rebalance = true,
Boolean $heal = true,
Boolean $remove_options = false,
Optional[Array] $options = undef,
Array[String[1]] $options = [],
Optional[Integer] $stripe = undef,
Optional[Integer] $replica = undef,
Optional[Integer] $arbiter = undef,
Expand All @@ -74,7 +74,7 @@

$_transport = "transport ${transport}"

if $options and ! empty( $options ) {
if ! empty( $options ) {
Copy link
Member

Choose a reason for hiding this comment

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

Later there's another if $_options. Perhaps you can combine those?

Copy link
Member

Choose a reason for hiding this comment

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

I think we should leave this pull request as it is, because many others depend on it and we need a working CI pipeline.

$_options = sort( $options )
} else {
$_options = undef
Expand Down
2 changes: 1 addition & 1 deletion manifests/volume/option.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# @note Copyright 2014 CoverMyMeds, unless otherwise noted
#
define gluster::volume::option (
Optional[String] $value = undef,
$value = undef,
Enum['present', 'absent'] $ensure = 'present',
) {

Expand Down