~stub/charms/trusty/cassandra-tools/devel

« back to all changes in this revision

Viewing changes to hooks/helpers.py

  • Committer: Stuart Bishop
  • Date: 2015-06-24 13:00:08 UTC
  • Revision ID: stuart.bishop@canonical.com-20150624130008-dmlgy4rjvkouidlf
wip

Show diffs side-by-side

added added

removed removed

Lines of Context:
645
645
        except subprocess.CalledProcessError as x:
646
646
            if i > 1:
647
647
                emit(x.output.expandtabs())  # Expand tabs for juju debug-log.
 
648
            if not is_cassandra_running():
 
649
                status_set('blocked',
 
650
                           'Cassandra has unexpectedly shutdown')
 
651
                raise SystemExit(0)
648
652
            if time.time() >= until:
649
653
                raise
650
654