Removed the need for an extra python file. i

- Formatted for consistency
- Used different variables for juju directory
This commit is contained in:
Matt Bruzek
2015-04-22 10:31:26 -05:00
parent 3342bb42e0
commit af15d6d614
2 changed files with 21 additions and 30 deletions

View File

@@ -1,12 +0,0 @@
#!/usr/bin/env python
import json
import sys
# This script helps parse out the private IP addreses from the
# `juju run` command's JSON object, see cluster/juju/util.sh
if len(sys.argv) > 1:
# It takes the JSON output as the first argument.
nodes = json.loads(sys.argv[1])
# There can be multiple nodes to print the Stdout.
for num in nodes:
print num['Stdout'].rstrip()