Skip to content

Commit

Permalink
Modify #connection to only validate options once
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
  • Loading branch information
jerryaldrichiii committed Mar 26, 2018
1 parent b2f0332 commit c411e9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/train/transports/cisco_ios.rb
Expand Up @@ -19,8 +19,7 @@ class CiscoIOS < SSH
option :enable_password

def connection
validate_options(@options)
@connection ||= Connection.new(@options)
@connection ||= Connection.new(validate_options(@options).options)
end

class Connection < BaseConnection
Expand Down

0 comments on commit c411e9e

Please sign in to comment.