/usr/lib/juju-0.7/bin/unit-get is in juju-0.7 0.7-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | #! /usr/bin/python
# We avoid using PYTHONPATH because it can cause side effects on hook execution
import os, sys
if "JUJU_PYTHONPATH" in os.environ:
sys.path[:0] = filter(None, os.environ["JUJU_PYTHONPATH"].split(":"))
from juju.hooks.commands import unit_get
if __name__ == '__main__':
unit_get()
|