Skip to content

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

Open
@peterjaap

Description

@peterjaap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions