Skip to content

Commit

Permalink
Merge pull request #147 from bastelfreak/has_key
Browse files Browse the repository at this point in the history
replace deprecated has_key() with `in`
  • Loading branch information
bastelfreak authored Dec 31, 2018
2 parents 3a89103 + f0fd908 commit 92965e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
# Loop over all providers, extract the paths and create
# directories for each path of dashboards.
$dashboardpaths.each | Integer $index, Hash $options | {
if has_key($options, 'path') {
if ('path' in $options) {
# get sub paths of 'path' and create subdirs if necessary
$subpaths = grafana::get_sub_paths($options['path'])
if ($grafana::create_subdirs_provisioning and (length($subpaths) >= 1)) {
Expand Down

0 comments on commit 92965e1

Please sign in to comment.