Skip to content

Commit

Permalink
Merge pull request #100 from sgreen-r7/master
Browse files Browse the repository at this point in the history
Update to the new username attr for xml
  • Loading branch information
mdaines-r7 committed Dec 31, 2014
2 parents e1a5984 + 6156d46 commit 417cb32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/nexpose/site_credential.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class SiteCredential < Credential
def self.for_service(service, user, password, realm = nil, host = nil, port = nil)
cred = new
cred.service = service
cred.userid = user
cred.username = user
cred.password = password
cred.realm = realm
cred.host = host
Expand Down Expand Up @@ -88,9 +88,8 @@ def to_xml

def as_xml
attributes = {}

attributes['service'] = @service
attributes['userid'] = @userid
attributes['userid'] = @username
attributes['password'] = @password
attributes['realm'] = @realm
attributes['host'] = @host
Expand Down

0 comments on commit 417cb32

Please sign in to comment.