Skip to content

Commit

Permalink
Add params to addons method
Browse files Browse the repository at this point in the history
  • Loading branch information
wstephenson committed Mar 21, 2014
1 parent c23f375 commit dbd282d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/suse/connect/api.rb
Expand Up @@ -74,9 +74,13 @@ def products
#
# @return [OpenStruct] responding to body(response from SCC) and code(natural HTTP response code).
#
def addons
@connection.get('/connect/systems/products', :auth => auth)
def addons(product)
payload = {
:product_ident => product[:name]
}
@connection.get('/connect/systems/products', :auth => auth, :params => payload)
end

end
end
end

0 comments on commit dbd282d

Please sign in to comment.