Skip to content

Commit 16d5693

Browse files
committed
ensure yes_flag default value to false
1 parent 053312c commit 16d5693

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

manifests/logical_volume.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
# :inherit
5050
# :normal
5151

52+
# @param yes_flag If set to true, do not prompt for confirmation interactively but always assume the answer yes.
53+
5254
#
5355
define lvm::logical_volume (
5456
String[1] $volume_group,
@@ -78,7 +80,7 @@
7880
Optional[Boolean] $no_sync = undef,
7981
Optional[Variant[String[1], Integer]] $region_size = undef,
8082
Optional[Enum['anywhere', 'contiguous', 'cling', 'inherit', 'normal']] $alloc = undef,
81-
Optional[Boolean] $yes_flag = false,
83+
Boolean $yes_flag = false,
8284
) {
8385
$lvm_device_path = "/dev/${volume_group}/${name}"
8486

tasks/ensure_lv.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
},
8484
"yes_flag": {
8585
"description": "If set to true, do not prompt for confirmation interactively but always assume the answer yes.",
86-
"type": "Optional[Boolean]"
86+
"type": "Boolean"
8787
}
8888
}
8989
}

0 commit comments

Comments
 (0)