Ruby SDK for Azure Resource Manager: build and manage your Azure cloud infrastructure (Compute, Virtual Networks, Storage, etc...) using Ruby.
275
stars
246
forks
source link
Issue listing more than one image in a shared gallery #2822
Closed
chris1984 closed 3 years ago
Hi,
I have 3 images in a shared image gallery. I can add the first one fine, but when I try to add the others I get the following error:
Failed to save: UUID could not be found in Azure
I can see the images come back correctly here in pry:
Here is the code we are using to pull the images with the SDK:
https://github.com/theforeman/foreman_azure_rm/blob/master/app/models/foreman_azure_rm/azure_rm.rb#L160
Where we get the empty array is on this guy:
https://github.com/theforeman/foreman_azure_rm/blob/master/lib/foreman_azure_rm/azure_sdk_adapter.rb#L165-L167
Since we are getting the empty array on an SDK call, is there a bug with the SDK or is it something we are not doing correctly?