Skip to content

Commit

Permalink
check if dummy constant is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Feb 15, 2016
1 parent f5bcdd1 commit f4e0ffa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/kitchen/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,15 +396,18 @@ def setup_action
# @see Driver::Base#verify
# @return [self] this instance, used to chain actions
# @api private
def verify_action
def verify_action # rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
banner "Verifying #{to_str}..."
elapsed = action(:verify) do |state|
# use special handling for busser
if legacy_ssh_base_driver? &&
(
(!defined?(Kitchen::Verifier::Busser).nil? &&
verifier.is_a?(Kitchen::Verifier::Busser)
) || verifier.is_a?(Kitchen::Verifier::Dummy)
) || (
!defined?(Kitchen::Verifier::Dummy).nil? &&
verifier.is_a?(Kitchen::Verifier::Dummy)
)
)
legacy_ssh_base_verify(state)
elsif legacy_ssh_base_driver?
Expand Down

0 comments on commit f4e0ffa

Please sign in to comment.