We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558f8b5 commit a0c5793Copy full SHA for a0c5793
manifests/volume.pp
@@ -74,7 +74,7 @@
74
75
$_transport = "transport ${transport}"
76
77
- if $options {
+ if $options and ! empty( $options ) {
78
$_options = sort( $options )
79
} else {
80
$_options = undef
spec/defines/volume_spec.rb
@@ -107,4 +107,16 @@
107
it { is_expected.to compile.with_all_deps }
108
it { is_expected.to contain_exec("gluster create volume #{title}") }
109
end
110
+ describe 'with empty options' do
111
+ let(:facts) do
112
+ {
113
+ gluster_binary: '/usr/sbin/gluster'
114
+ }
115
+ end
116
+ let(:params) do
117
+ super().merge(options: [])
118
119
+
120
+ it { is_expected.to compile.with_all_deps }
121
122
0 commit comments