Skip to content

Commit

Permalink
Removes cancel_publish_repo methods from the rsync distributors
Browse files Browse the repository at this point in the history
The platform code performs the cancel. The methods on the distributor are not necesary.
  • Loading branch information
dkliban committed Jul 31, 2016
1 parent e007ad2 commit 65bce7f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Expand Up @@ -94,12 +94,3 @@ def publish_repo(self, repo, publish_conduit, config):
self._publisher = publish.ISORsyncPublisher(repo, publish_conduit, config,
TYPE_ID_DISTRIBUTOR_ISO_RSYNC)
return self._publisher.publish()

def cancel_publish_repo(self):
"""
Call cancellation control hook.
"""
_LOG.debug(_('Canceling publishing repo to remote server'))
self.canceled = True
if self._publisher is not None:
self._publisher.cancel()
11 changes: 0 additions & 11 deletions plugins/pulp_rpm/plugins/distributors/rsync/distributor.py
Expand Up @@ -101,14 +101,3 @@ def publish_repo(self, repo, publish_conduit, config):
self._publisher = publish.RPMRsyncPublisher(repo, publish_conduit, config,
TYPE_ID_DISTRIBUTOR_RPM_RSYNC)
return self._publisher.publish()

def cancel_publish_repo(self):
"""
Call cancellation control hook.
"""
_LOG.debug(_('Canceling publishing repo to remote server'))

self.canceled = True
if self._publisher is not None:
self._publisher.cancel()

0 comments on commit 65bce7f

Please sign in to comment.