Skip to content

Commit

Permalink
screpe_jobs: accept more formats
Browse files Browse the repository at this point in the history
  • Loading branch information
costela committed Apr 8, 2019
1 parent 219b703 commit b71f222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
Hash $config_defaults = {},
String $os = downcase($facts['kernel']),
Optional[Variant[Stdlib::HTTPUrl, Stdlib::Unixpath, String[1]]] $external_url = undef,
Optional[Array[Hash[String, String]]] $collect_scrape_jobs = [],
Optional[Array[Hash[String[1], Any]]] $collect_scrape_jobs = [],
) {

case $arch {
Expand Down
2 changes: 1 addition & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
Boolean $purge_config_dir = $prometheus::purge_config_dir,
Boolean $manage_user = $prometheus::manage_user,
Optional[Variant[Stdlib::HTTPurl, Stdlib::Unixpath, String[1]]] $external_url = $prometheus::external_url,
Array[Hash[String[1], String[1]]] $collect_scrape_jobs = [],
Array[Hash[String[1], Any]] $collect_scrape_jobs = [],
) inherits prometheus {

if( versioncmp($version, '1.0.0') == -1 ){
Expand Down

0 comments on commit b71f222

Please sign in to comment.