Ubuntu Pastebin

Paste from bdx at Tue, 21 Nov 2017 21:23:41 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
@when('endpoint.redis-cache.uri')
def get_all_redis_cache_nodes():
    """Get redis-cache info
    """
    status_set('maintenance', 'Getting Redis-cache info')

    for redis_node in endpoint_from_name('redis-cache'):
        kv.set('redis_cache_uri', "{}/0".format(redis_node['uri']))

    status_set('active', 'Redis-cache connection details saved.')

    set_flag('pdl-api.juju.redis-cache.available')
    clear_flag('pdl-api.secrets.available')
    clear_flag('pdl-api.manual.redis-cache.available')
    clear_flag('endpoint.redis-cache.uri')
Download as text