Skip to content

Fix getVMByName to include projectID parameter#6

Open
qiaodeli111 wants to merge 1 commit intocloudstack:mainfrom
qiaodeli111:fix-getvmbyname-projectid
Open

Fix getVMByName to include projectID parameter#6
qiaodeli111 wants to merge 1 commit intocloudstack:mainfrom
qiaodeli111:fix-getvmbyname-projectid

Conversation

@qiaodeli111
Copy link

When VMs are deployed in a CloudStack project, the getVMByName function
fails to find them because it doesn't include the projectID parameter
in the ListVirtualMachines API call.

This fix adds the projectID parameter to getVMByName, making it consistent
with GetVMByID which already correctly handles project-scoped VMs.

Issue #, if available:

Description of changes:

Testing performed:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

  When VMs are deployed in a CloudStack project, the getVMByName function
  fails to find them because it doesn't include the projectID parameter
  in the ListVirtualMachines API call.

  This fix adds the projectID parameter to getVMByName, making it consistent
  with GetVMByID which already correctly handles project-scoped VMs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant