Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
Merge pull request #28 from beav/add-installed-product
Browse files Browse the repository at this point in the history
pass in installed products on register
  • Loading branch information
thomasmckay committed May 16, 2013
2 parents 395f1cf + b7679b2 commit ba79cec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/katello/client/api/system.py
Expand Up @@ -24,8 +24,9 @@ class SystemAPI(KatelloAPI):
"""
Connection class to access environment calls
"""
# pylint: disable=R0913
def register(self, name, org, environment_id, activation_keys, cp_type,
release=None, sla=None, facts=None, view_id=None):
release=None, sla=None, facts=None, view_id=None, installed_products=None):
if environment_id is not None:
path = "/api/environments/%s/systems" % environment_id
else:
Expand All @@ -45,6 +46,8 @@ def register(self, name, org, environment_id, activation_keys, cp_type,
sysdata["releaseVer"] = release
if view_id:
sysdata["content_view_id"] = view_id
if installed_products:
sysdata["installedProducts"] = installed_products

return self.server.POST(path, sysdata)[1]

Expand Down

0 comments on commit ba79cec

Please sign in to comment.