From e4e21b00762c2d0234edc3a11ad4cacc44b6884a Mon Sep 17 00:00:00 2001 From: Erran Carey Date: Tue, 24 Mar 2015 13:56:56 -0500 Subject: [PATCH] Send the engine-id when calling DiscoveryConnection#save --- lib/nexpose/discovery.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/nexpose/discovery.rb b/lib/nexpose/discovery.rb index 05285767..fa1ad2b7 100644 --- a/lib/nexpose/discovery.rb +++ b/lib/nexpose/discovery.rb @@ -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 @@ -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