Skip to content

Instantly share code, notes, and snippets.

@vi4m
Created December 10, 2012 14:07
Show Gist options
  • Save vi4m/4250744 to your computer and use it in GitHub Desktop.
Save vi4m/4250744 to your computer and use it in GitHub Desktop.
deployment
@plugin.register(chain='deployment', requires=[], priority=0)
def puppet(deployment_id):
if not settings.PUPPET_DB_URL:
return True
deployment = Deployment.objects.get(id=deployment_id)
return deployment.puppet_certificate_revoked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment