Hook command 'is-leader'

The information in this doc is based on Juju version 3.5.5, and may not accurately reflect other versions of Juju.

Summary

Print application leadership status.

Options

Flag Default Usage
--format smart Specify output format (json|smart|yaml)
-o, --output Specify an output file

Details

is-leader prints a boolean indicating whether the local unit is guaranteed to be application leader for at least 30 seconds. If it fails, you should assume that there is no such guarantee.