Skip to content

Commit

Permalink
scheduled sync - cli for setting plans connected to api
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Strachota committed Jan 17, 2012
1 parent 4258613 commit f6f78bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/src/katello/client/api/product.py
Expand Up @@ -65,10 +65,12 @@ def sync(self, prodId):
return self.server.POST(path)[1]

def set_sync_plan(self, prodId, planId):
return "Sync plan added"
path = "/api/products/%s/sync_plan" % str(prodId)
return self.server.POST(path, {"plan_id": planId})[1]

def remove_sync_plan(self, prodId):
return "Sync plan removed"
path = "/api/products/%s/sync_plan" % str(prodId)
return self.server.DELETE(path)[1]

def cancel_sync(self, prodId):
path = "/api/products/%s/sync" % prodId
Expand Down

0 comments on commit f6f78bf

Please sign in to comment.