Skip to content

Commit

Permalink
Merge pull request #177 from Ladas/make_sure_container_has_always_the…
Browse files Browse the repository at this point in the history
…_right_sti_type

Make sure Container has always the right STI type
  • Loading branch information
Mooli Tayer authored Dec 11, 2017
2 parents d960961 + 561dba9 commit cc36180
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,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 @@ -1095,7 +1096,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 cc36180

Please sign in to comment.