Comment 2 for bug 1293831

Revision history for this message
Matt Bruzek (mbruzek) wrote :

Just to follow up, I did find a way to work around this problem from the amulet test perspective. I wanted to leave this information here in case it helps someone else. Warning, the workaround is ugly python code but it works.

# The command must contain the double quotes around "unit-get private address"
# Other ways of writing the command, got the quotes escaped.
cmd = 'juju run --unit tomcat/1 "unit-get private-address"
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True)