diff options
author | Jesse Wolfe <jes5199@gmail.com> | 2009-11-10 03:41:10 -0800 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-11-12 08:19:11 +1100 |
commit | b1722871ec27aa451be17e6fe6e099cc2f35cf7b (patch) | |
tree | cadadab2791a2703c57a850a3fde15cc1877409e /spec/unit | |
parent | 40135609c8cfc7b70369a848a383a687a216f6a7 (diff) | |
download | puppet-b1722871ec27aa451be17e6fe6e099cc2f35cf7b.tar.gz puppet-b1722871ec27aa451be17e6fe6e099cc2f35cf7b.tar.xz puppet-b1722871ec27aa451be17e6fe6e099cc2f35cf7b.zip |
Fixing #2767 invoke-rc.d warnings
Errors written to STDERR by Debian's invoke-rc.d are spurious, since
we're only using it to query whether a service can be started.
I'm adding the --quiet flag to suppress those messages.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/provider/service/debian.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/service/debian.rb b/spec/unit/provider/service/debian.rb index 87d627452..ea87c375d 100755 --- a/spec/unit/provider/service/debian.rb +++ b/spec/unit/provider/service/debian.rb @@ -60,7 +60,7 @@ describe provider_class do describe "when checking whether it is enabled" do it "should call Kernel.system() with the appropriate parameters" do - @provider.expects(:system).with("/usr/sbin/invoke-rc.d", "--query", @resource[:name], "start").once + @provider.expects(:system).with("/usr/sbin/invoke-rc.d", "--quiet", "--query", @resource[:name], "start").once @provider.enabled? end |