From 2c652fe593a7e4b8ee0f30143e3a21f7d43e99b7 Mon Sep 17 00:00:00 2001 From: Peter Souter Date: Tue, 2 May 2017 22:36:09 +0100 Subject: [PATCH] Linting fixes * FIXED: arrow should be on the right operand's line on line 42 * Warning: Dependency herculesteam/augeasproviders_sysctl has an open ended dependency version requirement >=2.1.0 * Warning: Dependency herculesteam/augeasproviders_core has an open ended dependency version requirement >=2.1.0 --- manifests/files.pp | 2 +- manifests/resize.pp | 4 +--- metadata.json | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/manifests/files.pp b/manifests/files.pp index 77200d7..0107715 100644 --- a/manifests/files.pp +++ b/manifests/files.pp @@ -112,7 +112,7 @@ swap_file { $swapfile: ensure => 'present', - require => File[$swapfile] + require => File[$swapfile], } if $add_mount { mount { $swapfile: diff --git a/manifests/resize.pp b/manifests/resize.pp index e98629c..2dbe176 100644 --- a/manifests/resize.pp +++ b/manifests/resize.pp @@ -38,9 +38,7 @@ exec { "Detach swap file ${swapfile_path} for resize": command => "/sbin/swapoff ${swapfile_path}", onlyif => "/sbin/swapon -s | grep ${swapfile_path}", - } - -> - exec { "Purge ${swapfile_path} for resize": + } -> exec { "Purge ${swapfile_path} for resize": command => "/bin/rm -f ${swapfile_path}", onlyif => "test -f ${swapfile_path}", path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ], diff --git a/metadata.json b/metadata.json index 1d960ee..083e6f4 100644 --- a/metadata.json +++ b/metadata.json @@ -53,11 +53,11 @@ }, { "name": "herculesteam/augeasproviders_sysctl", - "version_requirement": ">=2.1.0" + "version_requirement": ">=2.1.0 < 3.0.0" }, { "name": "herculesteam/augeasproviders_core", - "version_requirement": ">=2.1.0" + "version_requirement": ">=2.1.0 < 3.0.0" } ] }