Ubuntu Pastebin

Paste from kwm at Thu, 8 Sep 2016 16:04:49 +0000

Download as text
1
2
3
4
5
6
7
8
# Usage: jdo app/0 my-action

function jdo {
    action_id=`set -o pipefail; juju run-action "$@" | cut -f2 -d:`
    if [[ $? == 0 ]]; then
        juju show-action-output --wait 0 $action_id
    fi
}
Download as text