Skip to content

Instantly share code, notes, and snippets.

@saml
Created October 22, 2015 18:47
Show Gist options
  • Save saml/0ebd65637f71d0144327 to your computer and use it in GitHub Desktop.
Save saml/0ebd65637f71d0144327 to your computer and use it in GitHub Desktop.
def _s3_push(self, payload):
log.info('S3 PUSH %s', payload.source_url)
def _s3_push_dummy(self, payload):
log.info('S3 PUSH DUMMY %s', payload.source_url)
s3_push = _s3_push \
if config['AWS_ACCESS_KEY_ID'] and config['AWS_SECRET_ACCESS_KEY'] \
else _s3_push_dummy
task(bind=True)(s3_push)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment