From 0cb4658068bfabf3c0848d9341f0d3dc5b88690c Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 18 Sep 2020 11:14:43 +0200 Subject: [PATCH] Drop duplicate class declaration The `contain` not only enforces the ordering, it also adds it to the catalog. We don't need to call the class explicitly in advance. --- manifests/repo/nodesource.pp | 2 -- 1 file changed, 2 deletions(-) diff --git a/manifests/repo/nodesource.pp b/manifests/repo/nodesource.pp index 77ef33c0..5330133e 100644 --- a/manifests/repo/nodesource.pp +++ b/manifests/repo/nodesource.pp @@ -46,11 +46,9 @@ $source_descr = "Node.js for ${name_string} - \$basearch - Source" $source_baseurl = "https://rpm.nodesource.com/pub_${url_suffix}/${dist_type}/${dist_version}/SRPMS" - class { 'nodejs::repo::nodesource::yum': } contain 'nodejs::repo::nodesource::yum' } 'Debian': { - class { 'nodejs::repo::nodesource::apt': } contain 'nodejs::repo::nodesource::apt' } default: {