mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3806: There was error in host_view sql, it was using host_details.id for join instead host_details.host_id
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
This commit is contained in:
parent
fe6e0390f8
commit
bdbdfd401b
|
|
@ -977,7 +977,7 @@ CREATE VIEW `cloud`.`host_view` AS
|
|||
left join
|
||||
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
|
||||
left join
|
||||
`cloud`.`host_details` ON host.id = host_details.id
|
||||
`cloud`.`host_details` ON host.id = host_details.host_id
|
||||
and host_details.name = 'guest.os.category.id'
|
||||
left join
|
||||
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)
|
||||
|
|
|
|||
|
|
@ -1073,7 +1073,7 @@ CREATE VIEW `cloud`.`host_view` AS
|
|||
left join
|
||||
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
|
||||
left join
|
||||
`cloud`.`host_details` ON host.id = host_details.id
|
||||
`cloud`.`host_details` ON host.id = host_details.host_id
|
||||
and host_details.name = 'guest.os.category.id'
|
||||
left join
|
||||
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)
|
||||
|
|
|
|||
|
|
@ -976,7 +976,7 @@ CREATE VIEW `cloud`.`host_view` AS
|
|||
left join
|
||||
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
|
||||
left join
|
||||
`cloud`.`host_details` ON host.id = host_details.id
|
||||
`cloud`.`host_details` ON host.id = host_details.host_id
|
||||
and host_details.name = 'guest.os.category.id'
|
||||
left join
|
||||
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)
|
||||
|
|
|
|||
Loading…
Reference in New Issue