Skip to content

bug: sample store identifiers that look like exponential notation do not work correctly with --set #57

@AlessandroPomponio

Description

@AlessandroPomponio

Issue Description

Sample store identifiers are made up of 6 alphanumeric characters. In the eventuality that a sample store identifier is generated looking like 310e50, using it via the --set flag in ado create such as:

ado create space -f examples/ml-multi-cloud/ml_multicloud_space.yaml --set entitySourceIdentifier=310e50

Will raise the following exception:

ERROR:  The database does not contain a resource with id 3.1e+52 and kind entitysource.
HINT:   Your active context is local - are you sure it's the correct one?
        You can change it with ado context

JSON parsing converts what looks like a string in exponential notation to a number, changing to something that is not found in the DB.

Possible solution

  • Change the function that generates the random identifier so that this cannot happen anymore

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions