mirror of
https://github.com/inspec/inspec
synced 2025-02-18 15:08:44 +00:00
deactivate rubocop testing for unspecific exception handling (#50)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
This commit is contained in:
parent
b1254926cd
commit
c7adc529b2
2 changed files with 4 additions and 1 deletions
|
@ -72,3 +72,5 @@ Style/SpaceAroundOperators:
|
|||
Enabled: false
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
Lint/RescueWithoutErrorClass:
|
||||
Enabled: false
|
||||
|
|
|
@ -143,6 +143,7 @@ class Helpers
|
|||
# get a vm from the named resource group
|
||||
begin
|
||||
compute_mgmt.client.virtual_machines.get(rg_name, name)
|
||||
# TODO: we should avoid doing a general rescue, will be covered with InSpec 2.0 integration
|
||||
rescue => e
|
||||
e.error_message
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue