Revision c1b1d444 ci/setup_slave.py

b/ci/setup_slave.py
10 10
def setup_slave():
11 11
    """Setup slave server"""
12 12
    synnefo_ci = SynnefoCI(cleanup_config=True)
13
    # Get token from /nfs/token
14
    try:
15
        token = open("/nfs/synnefo_token").read().strip()
16
        synnefo_ci.write_config('token', token, 'Deployment')
17
    except:
18
        pass
19 13
    # Build slave server
20 14
    synnefo_ci.create_server()
21 15
    # Copy synnefo repo to server

Also available in: Unified diff