Last active
August 29, 2015 14:26
-
-
Save aboudreault/7efd9df4be627773c98f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def run_python_script(script): | |
fab_append("pyscript.py", textwrap.dedent(script)) | |
fab.run("python ~/pyscript.py") | |
#### fab output | |
[172.17.0.85] Executing task 'run_python_script' │te | |
[172.17.0.85] run: echo ' │st | |
from cstar_perf.frontend.server.model import Model │_c | |
db = Model() │lu | |
db.create_user('\\''[email protected]'\\'', '\\''Admin Full Name'\\'', ['\\''user'\\'','\\''admin'\\'']) │st | |
db.set_user_passphrase('\\''[email protected]'\\'', '\\''admin'\\'') │er | |
db.create_user('\\''[email protected]'\\'', '\\''User Full Name'\\'', ['\\''user'\\'']) │_0 | |
db.set_user_passphrase('\\''[email protected]'\\'', '\\''user'\\'') │3 | |
' >> "$(echo pyscript.py)" │cs | |
[172.17.0.85] run: python ~/pyscript.py │ta | |
[172.17.0.85] out: INFO:cstar_perf.model:Initializing Model... │r@ | |
[172.17.0.85] out: ERROR:cassandra.connection:Closing connection <AsyncoreConnection(139883620563536) 127.0.0.1:9042> due to protocol error: code=000a [Protocol │te | |
error] message="Invalid or unsupported protocol version: 4" │st | |
[172.17.0.85] out: WARNING:cassandra.cluster:Downgrading core protocol version from 4 to 3 for 127.0.0.1 │_c | |
[172.17.0.85] out: INFO:cstar_perf.model:Creating new schema in keyspace : cstar_perf │lu | |
[172.17.0.85] out: INFO:cstar_perf.model:Model initialized │st | |
[172.17.0.85] out: │er | |
test_frontend_00 │0: | |
INFO:cstar_docker:cstar_perf service started, opening in your browser: http://localhost:8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment