Skip to content

Commit

Permalink
fix: fix virtual machines response data
Browse files Browse the repository at this point in the history
  • Loading branch information
lhhyung committed Aug 22, 2024
1 parent 6ccf146 commit c0443cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugin/manager/virtual_machines/instance_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,16 @@ def create_cloud_service(self, options, secret_data, schema):
cloud_service_type=self.cloud_service_type,
cloud_service_group=self.cloud_service_group,
provider=self.provider,
data=vm_resource,
data=vm_resource["data"],
account=subscription_data["subscription_id"],
instance_type=vm_resource["data"]["compute"]["instance_type"],
ip_addresses=vm_resource["ip_addresses"],
region_code=vm_resource["region_code"],
reference=self.make_reference(
vm_resource["data"]["compute"]["instance_id"],
f"https://portal.azure.com/#@.onmicrosoft.com/resource/subscriptions/{subscription_data['subscription_id']}/resourceGroups/{resource_group_name}/providers/Microsoft.Compute/virtualMachines/{vm_resource['data']['compute']['instance_name']}/overview"
),
tags=vm.tags,
tags=vm_resource["tags"],
data_format="dict"
)
)
Expand Down

0 comments on commit c0443cd

Please sign in to comment.