diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-12-05 17:13:39 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-12-05 17:13:39 -0800 |
commit | 4cd8783302d983bfeab704aa1b5704a5cee1b96d (patch) | |
tree | 168abfb9e20887a226287389dc017c348a79e6a8 | |
parent | 42cc7e4e2baa62cd742d809ee95e0232cbe9fe00 (diff) | |
download | chef-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.rb | 5 |
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 |