Commit a6b19002 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

deploy: Fix parsing of the service token

parent 547a6802
......@@ -692,9 +692,9 @@ EOF
def get_service_details(service="pithos"):
debug(env.host,
" * Getting registered details for %s service..." % service)
result = try_run("snf-manage component-list")
result = try_run("snf-manage component-list -o id,name,token")
r = re.compile(r".*%s.*" % service, re.M)
service_id, _, _, service_token = r.search(result).group().split()
service_id, _, service_token = r.search(result).group().split()
# print("%s: %s %s" % (service, service_id, service_token))
return (service_id, service_token)
......
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