summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-12-05 17:13:39 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-12-05 17:13:39 -0800
commit4cd8783302d983bfeab704aa1b5704a5cee1b96d (patch)
tree168abfb9e20887a226287389dc017c348a79e6a8
parent42cc7e4e2baa62cd742d809ee95e0232cbe9fe00 (diff)
downloadchef-4cd8783302d983bfeab704aa1b5704a5cee1b96d.tar.gz
fix my logic
another derp Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/functional/resource/apt_package_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/functional/resource/apt_package_spec.rb b/spec/functional/resource/apt_package_spec.rb
index 4591d68066..b323948596 100644
--- a/spec/functional/resource/apt_package_spec.rb
+++ b/spec/functional/resource/apt_package_spec.rb
@@ -118,10 +118,9 @@ describe Chef::Resource::AptPackage, metadata do
# swallow the errors the second time (which unfortunately creates cascading errors which
# have nothing to do with the problem), but the first time we throw the exception so
# that debugging can hopefully proceeed.
- if INeedSomeGlobalState.alreadyfailed
- raise
- else
+ if !INeedSomeGlobalState.alreadyfailed
INeedSomeGlobalState.alreadyfailed = true
+ raise
end
end
end