Commit 07d5ad60 authored by Yas Naoi's avatar Yas Naoi Committed by Yas Naoi
Browse files

Issue #3094377 by yas: Fix a degradation in k8s_to_s3.module

parent 78f93bf8
Loading
Loading
Loading
Loading
+3 −2
Changes for modules/tools/k8s_to_s3/k8s_to_s3.module: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -394,10 +394,11 @@ function k8s_to_s3_transfer_image(

    $target_tag = k8s_to_s3_get_ecr_target($docker, $ecr, $image, $cloud_context);
    // Docker pull from repo, tag and push to target sequence.sequence.
    if ($docker->pullImage($info['name']) == TRUE) {
    if ($docker->pullImage($info['name']) === TRUE) {
      $docker->tagImage($image, $target_tag, $info['tag']);
      $docker->pushImage($target_tag, $auth);
      // Check to see if the image got pushed.  If error, log it.
      if ($ecr->doesImageExist($info['full_repository'], $info['tag']) == FALSE) {
      if ($ecr->doesImageExist($info['full_repository'], $info['tag']) === FALSE) {
        \Drupal::logger('k8s_to_s3')->error(
          t(
            'Image @image not pushed to Ecr @endpoint',