Skip to content

Commit

Permalink
Adding API route for auto-attaching a system by uuid.
Browse files Browse the repository at this point in the history
  • Loading branch information
Og B. Maciel committed Jun 19, 2013
1 parent 914bfd2 commit 2b7d606
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/katello/client/api/system.py
Expand Up @@ -55,6 +55,10 @@ def unregister(self, system_uuid):
path = "/api/systems/" + u_str(system_uuid)
return self.server.DELETE(path)[1]

def auto_attach(self, system_uuid):
path = "/candlepin/owners/%s/entitlements" % u_str(system_uuid)
return self.server.POST(path)[1]

# checkin_time - datetime or None (default)
def checkin(self, system_uuid, checkin_time=None):
path = "/api/systems/%s/checkin" % u_str(system_uuid)
Expand Down

2 comments on commit 2b7d606

@thomasmckay
Copy link

Choose a reason for hiding this comment

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

the refresh_subscriptions() method does what you were intending here

@omaciel
Copy link
Owner

Choose a reason for hiding this comment

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

meh should have checked first. Oh well :)

Please sign in to comment.