Skip to content

Commit fdf9395

Browse files
committed
Avoid deprecated has_key function
The has_key function was removed with: puppetlabs/puppetlabs-stdlib#1319
1 parent dc12230 commit fdf9395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/container.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
$flags_base64 = base64('encode', inline_template('<%= @flags.to_s %>'), strict)
8686

8787
# Add the default name and a custom label using the base64 encoded flags
88-
if has_key($flags, 'label') {
88+
if 'label' in $flags {
8989
$label = [] + $flags['label'] + "puppet_resource_flags=${flags_base64}"
9090
$no_label = $flags.delete('label')
9191
} else {

0 commit comments

Comments
 (0)