Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
[issue #2680]: Scheduled RPM (un)installation does not work (#2980)
Browse files Browse the repository at this point in the history
fixes #2680 Scheduled RPM (un)installation does not work
added myself to the AUTHORS file as requested by bmbouter
  • Loading branch information
S1artie authored and bmbouter committed Mar 30, 2017
1 parent f5c1a8a commit a8a1196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -40,6 +40,7 @@ Dan Radez (dradez@redhat.com)
Jason E. Rist (jrist@redhat.com)
Jesus M. Rodriguez (jesusr@redhat.com)
Todd Sanders (tsanders@redhat.com)
Rene Schneider (slartie@posteo.de)
Justin Sherrill (jsherril@redhat.com)
James Slagle (jslagle@redhat.com)
Chris St. Pierre (chris.a.st.pierre@gmail.com)
Expand Down
8 changes: 6 additions & 2 deletions server/pulp/server/controllers/consumer.py
Expand Up @@ -125,7 +125,7 @@ def force_unbind(consumer_id, repo_id, distributor_id, options):


@celery.task(base=Task, name='pulp.server.tasks.consumer.install_content')
def install_content(consumer_id, units, options):
def install_content(consumer_id, units, options, scheduled_call_id=None):
"""
Install units on a consumer
Expand All @@ -135,6 +135,8 @@ def install_content(consumer_id, units, options):
:type units: list or tuple
:param options: options to pass to the install manager
:type options: dict or None
:param scheduled_call_id: id of scheduled call that dispatched this task
:type scheduled_call_id: str
:returns Dictionary representation of a task status
:rtype: dictionary
"""
Expand Down Expand Up @@ -163,7 +165,7 @@ def update_content(consumer_id, units, options, scheduled_call_id=None):


@celery.task(base=Task, name='pulp.server.tasks.consumer.uninstall_content')
def uninstall_content(consumer_id, units, options):
def uninstall_content(consumer_id, units, options, scheduled_call_id=None):
"""
Uninstall content from a consumer.
Expand All @@ -173,6 +175,8 @@ def uninstall_content(consumer_id, units, options):
:type units: list or tuple
:param options: options to pass to the install manager
:type options: dict or None
:param scheduled_call_id: id of scheduled call that dispatched this task
:type scheduled_call_id: str
:returns Dictionary representation of a task status
:rtype: dictionary
"""
Expand Down

0 comments on commit a8a1196

Please sign in to comment.