Skip to content

[Bug] cloud meta service get_instance api returns success even when we pass invalid instance_id #31044

@rohitrs1983

Description

@rohitrs1983

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master

What's Wrong?

cloud meta service get_instance api returns success even when we pass invalid instance_id

~/temp$ curl "127.0.0.1:5000/MetaService/http/get_instance?token=greedisgood9999&instance_id=cloud_instance_1";
{
"code": "OK",
"msg": "",
"result": {}
}

instance_id=cloud_instance_1 does not exist

What You Expected?

meta service get_instance api should return "failed to get instance" when invalid instance_id is passed

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions