Commit 20472457 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis
Browse files

snf-deploy: fix strange behaviour of openssl



When used remotely via ssh it produces a strange (stdin)= before
the real output.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent 3179113f
......@@ -910,7 +910,7 @@ EOF
def add_rapi_user():
debug(env.host, " * Adding RAPI user to Ganeti backend...")
cmd = """
echo -n "{0}:Ganeti Remote API:{1}" | openssl md5
echo -n "{0}:Ganeti Remote API:{1}" | openssl md5 | sed 's/^.* //'
""".format(env.env.synnefo_user, env.env.synnefo_rapi_passwd)
result = try_run(cmd)
if result.startswith("(stdin)= "):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment