mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Don't need to return on these.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
9173674ecd
commit
85df7f52ef
1 changed files with 3 additions and 3 deletions
|
@ -69,9 +69,9 @@ module Inspec::Resources
|
|||
private
|
||||
|
||||
def pre_flight_check
|
||||
return skip_resource "Option 'as_os_user' not available in Windows" if inspec.os.windows? && su_user
|
||||
return fail_resource "Can't run Oracle checks without authentication" unless su_user && (user || password)
|
||||
return fail_resource "You must provide a service name for the session" unless service
|
||||
skip_resource "Option 'as_os_user' not available in Windows" if inspec.os.windows? && su_user
|
||||
fail_resource "Can't run Oracle checks without authentication" unless su_user && (user || password)
|
||||
fail_resource "You must provide a service name for the session" unless service
|
||||
end
|
||||
|
||||
# 3 commands
|
||||
|
|
Loading…
Add table
Reference in a new issue