|
blacklisted = filter(lambda c: not get_host_attributes(c + '-1')['supported_job_types']['virtual'], |
appending '-1' at the end of c cause an error in get_host_attributes because there is no 'graphene-1' key in the dictionary used to retrieve attributes.
my work around is the following:
hosts = get_api_data()['hosts']
nodes = [
[a for a in hosts.keys() if b in a ][0]
for b in get_g5k_clusters()]
blacklisted = [
a.split('-')[0]
for a in nodes
if not hosts[a]['supported_job_types']['virtual']]
vm5k/bin/vm5k
Line 151 in 3819d42
appending '-1' at the end of c cause an error in get_host_attributes because there is no 'graphene-1' key in the dictionary used to retrieve attributes.
my work around is the following: