Skip to content

Commit

Permalink
ensure yes_flag default value to false
Browse files Browse the repository at this point in the history
  • Loading branch information
bmlit committed Jul 24, 2023
1 parent a1ec613 commit 66380cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion manifests/logical_volume.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
# :inherit
# :normal

# @param yes_flag If set to true, do not prompt for confirmation interactively but always assume the answer yes.

#
define lvm::logical_volume (
String[1] $volume_group,
Expand Down Expand Up @@ -78,7 +80,7 @@
Optional[Boolean] $no_sync = undef,
Optional[Variant[String[1], Integer]] $region_size = undef,
Optional[Enum['anywhere', 'contiguous', 'cling', 'inherit', 'normal']] $alloc = undef,
Optional[Boolean] $yes_flag = false,
Boolean $yes_flag = false,
) {
$lvm_device_path = "/dev/${volume_group}/${name}"

Expand Down
2 changes: 1 addition & 1 deletion tasks/ensure_lv.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"yes_flag": {
"description": "If set to true, do not prompt for confirmation interactively but always assume the answer yes.",
"type": "Optional[Boolean]"
"type": "Boolean"
}
}
}

0 comments on commit 66380cc

Please sign in to comment.