Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cherry-pick: Send the engine-id when calling DiscoveryConnection#save #145

Merged
merged 1 commit into from
Mar 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/nexpose/discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,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 @@ -164,6 +167,7 @@ def as_xml
xml.attributes['exchange-username'] = @exchange_username if @exchange_username
xml.attributes['exchange-password'] = @exchange_password if @exchange_password
xml.attributes['type'] = @type if @type
xml.attributes['engine-id'] = @engine_id if @engine_id && @engine_id != -1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary spacing detected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:trollface: Consistency...

xml
end

Expand Down