Skip to content

Commit

Permalink
Make sure Container has always the right STI type
Browse files Browse the repository at this point in the history
Make sure Container has always the right STI type. Before, the
missing image could cause the STI type is Container, which
made metrics capture fail.

Fixes BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1517676
  • Loading branch information
Ladas committed Nov 27, 2017
1 parent ef60398 commit 561dba9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ def parse_conditions(entity)

def parse_container_spec(container_spec, pod_id)
new_result = {
:type => 'ManageIQ::Providers::Kubernetes::ContainerManager::Container',
:ems_ref => "#{pod_id}_#{container_spec.name}_#{container_spec.image}",
:name => container_spec.name,
:image => container_spec.image,
Expand Down Expand Up @@ -1079,7 +1080,6 @@ def parse_container_status(container, pod_id)
return if container_image.nil?

h = {
:type => 'ManageIQ::Providers::Kubernetes::ContainerManager::Container',
:restart_count => container.restartCount,
:backing_ref => container.containerID,
:container_image => container_image
Expand Down

0 comments on commit 561dba9

Please sign in to comment.