mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +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
|
@ -71,4 +71,6 @@ BlockDelimiters:
|
|||
Style/SpaceAroundOperators:
|
||||
Enabled: false
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: false
|
||||
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…
Reference in a new issue