Skip to content

Commit

Permalink
update_system should be able to send all the data as at announce_syst…
Browse files Browse the repository at this point in the history
…em (bnc#889778)
  • Loading branch information
mcalmer committed Jul 31, 2014
1 parent e0cac46 commit 2fd84be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/suse/connect/api.rb
Expand Up @@ -51,11 +51,13 @@ def announce_system(auth, distro_target = nil, instance_data = nil)
# In this case we expect Base64 encoded string with login and password
# @return [OpenStruct] responding to #body(response from SCC), #code(natural HTTP response code) and #success.
#
def update_system(auth)
def update_system(auth, distro_target = nil, instance_data = nil)
payload = {
:hostname => System.hostname,
:hwinfo => System.hwinfo
:hwinfo => System.hwinfo,
:distro_target => distro_target || Zypper.distro_target
}
payload[:instance_data] = instance_data if instance_data
@connection.put('/connect/systems', :auth => auth, :params => payload)
end

Expand Down

0 comments on commit 2fd84be

Please sign in to comment.