Revision b55b9692 snf-common/synnefo/lib/services.py
b/snf-common/synnefo/lib/services.py | ||
---|---|---|
31 | 31 |
# interpreted as representing official policies, either expressed |
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 |
from copy import deepcopy |
|
34 | 35 |
from synnefo.lib import join_urls |
35 | 36 |
from synnefo.util.keypath import get_path, set_path |
36 | 37 |
|
... | ... | |
47 | 48 |
|
48 | 49 |
publicURL = join_urls(base_url, prefix, version) |
49 | 50 |
set_path(endpoint, 'publicURL', publicURL) |
51 |
|
|
52 |
|
|
53 |
def filter_public(services): |
|
54 |
public_services = {} |
|
55 |
for name, service in services.iteritems(): |
|
56 |
if service.get('public', False): |
|
57 |
public_services[name] = deepcopy(service) |
|
58 |
return public_services |
Also available in: Unified diff