Skip to content

get_host_attributes(c + '-1') call fail [proposed Label] bug #106

@quentinLeDilavrec

Description

@quentinLeDilavrec

vm5k/bin/vm5k

Line 151 in 3819d42

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']]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions