Skip to content

Commit d4707ca

Browse files
committed
Rename the yes parameter to yes_arg
1 parent 3651066 commit d4707ca

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ resources out yourself.
201201
* stripesize (Parameter) - The stripesize to use for the new logical volume.
202202
* thinpool (Parameter) - Default value: `false` - Set to true to create a thin pool or to pool name to create thin volume
203203
* volume_group (Parameter) - The volume group name associated with this logical volume. This will automatically set this volume group as a dependency, but it must be defined elsewhere using the volume_group resource type.
204-
* yes (Parameter) - Default value: `false` - Do not prompt for confirmation interactively but always assume the answer yes.
204+
* yes_flag (Parameter) - Default value: `false` - Do not prompt for confirmation interactively but always assume the answer yes.
205205

206206
### physical_volume
207207

lib/puppet/provider/logical_volume/lvm.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def create
119119
args << @resource[:volume_group]
120120
end
121121

122-
if @resource[:yes]
122+
if @resource[:yes_flag]
123123
args.push('--yes')
124124
end
125125
lvcreate(*args)
@@ -188,7 +188,7 @@ def size=(new_size)
188188

189189
if resizeable
190190
args = []
191-
if @resource[:yes]
191+
if @resource[:yes_flag]
192192
args.push('--yes')
193193
end
194194
lvextend('-L', new_size, path, *args) || raise("Cannot extend to size #{new_size} because lvextend failed.")

lib/puppet/type/logical_volume.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def insync?(is)
180180
end
181181
end
182182

183-
newparam(:yes) do
183+
newparam(:yes_flag) do
184184
desc "Do not prompt for confirmation interactively but always assume the answer yes."
185185
defaultto false
186186
end

manifests/logical_volume.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
no_sync => $no_sync,
141141
region_size => $region_size,
142142
alloc => $alloc,
143-
yes => $yes,
143+
yes_flag => $yes_flag,
144144
}
145145

146146
if $createfs {

tasks/ensure_lv.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"description": "A mirror is divided into regions of this size (in MB), the mirror log uses this granularity to track which regions are in sync. CAN NOT BE CHANGED on already mirrored volume. Take your mirror size in terabytes and round up that number to the next power of 2, using that number as the -R argument.",
8282
"type": "Optional[Integer]"
8383
},
84-
"yes": {
84+
"yes_flag": {
8585
"description": "Do not prompt for confirmation interactively but always assume the answer yes.",
8686
"type": "Optional[Boolean]"
8787
}

tasks/ensure_lv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
logical_volume[:alloc] = params['alloc'] if params['alloc']
5151
logical_volume[:no_sync] = params['no_sync'] if params['no_sync']
5252
logical_volume[:region_size] = params['region_size'] if params['region_size']
53-
logical_volume[:yes] = params['yes'] if params['yes']
53+
logical_volume[:yes_flag] = params['yes_flag'] if params['yes_flag']
5454

5555
# Save the result
5656
_resource, report = Puppet::Resource.indirection.save(logical_volume)

0 commit comments

Comments
 (0)