Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels are returned as keys, not as values? #15

Open
peterjaap opened this issue Mar 27, 2023 · 1 comment
Open

Labels are returned as keys, not as values? #15

peterjaap opened this issue Mar 27, 2023 · 1 comment

Comments

@peterjaap
Copy link
Contributor

peterjaap commented Mar 27, 2023

That doesn't look right?

I create a brancher node through the API like this;

$labels = ['hiereenlabel', 'nogeenlabel'];
$client->brancherApp->create($originHypernode, [
            'labels' => $labels,
            'clear-services' => $clearServices,
        ]);

Then when I request a list (with the new list command, see #14), I get this;

    [0] => Array                     
        (              
            [id] => 15803                                
            [name] => hypernodenamehere-eph1z2ypy
            [cost] => 1   
            [created] => 2023-03-27T16:18:59.326882+02:00
            [ip] =>          
            [end_time] => 
            [elapsed_time] => 3
            [labels] => Array
                (
                    [labelhier] => 
                    [nogeenlabel] => 
                )                                   

        )

I would've expected to see:

            [labels] => Array
                (
                    [0] => 'labelhier'
                    [1] => 'nogeenlabel'
                )         
@peterjaap
Copy link
Contributor Author

I guess this has more to do with the API itself than this client, but there's no public repo for the API itself ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant