Revision b3adfb20 snf-deploy/fabfile.py

b/snf-deploy/fabfile.py
692 692
def get_service_details(service="pithos"):
693 693
    debug(env.host,
694 694
          " * Getting registered details for %s service..." % service)
695
    result = try_run("snf-manage component-list")
695
    result = try_run("snf-manage component-list -o id,name,token")
696 696
    r = re.compile(r".*%s.*" % service, re.M)
697
    service_id, _, _, service_token = r.search(result).group().split()
697
    service_id, _, service_token = r.search(result).group().split()
698 698
    # print("%s: %s %s" % (service, service_id, service_token))
699 699
    return (service_id, service_token)
700 700

  

Also available in: Unified diff