Skip to content

Commit

Permalink
Merge pull request #143 from rapid7/support-engine-id-in-discovery
Browse files Browse the repository at this point in the history
Send the engine-id when calling DiscoveryConnection#save
  • Loading branch information
sgreen-r7 committed Mar 24, 2015
2 parents ad936d4 + e4e21b0 commit 5918b22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/nexpose/discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ module Type
# The IP address or fully qualified domain name of the server.
attr_accessor :address

# The engine ID to use for this connection.
attr_accessor :engine_id

# A user name that can be used to log into the server.
attr_accessor :user

Expand Down Expand Up @@ -150,6 +153,7 @@ def as_xml
xml.attributes['user-name'] = @user
xml.attributes['password'] = @password
xml.attributes['type'] = @type if @type
xml.attributes['engine-id'] = @engine_id if @engine_id && @engine_id != -1
xml
end

Expand Down

0 comments on commit 5918b22

Please sign in to comment.