Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-7751

[4.12] fix gofmt check issue in network-metrics-daemon

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Normal
    • None
    • 4.13.0
    • Networking / multus
    • None
    • Low
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      $ ./hack/check_gofmt.sh
      pkg/podmetrics/podmetrics.go
      
      $ git diff
      diff --git a/pkg/podmetrics/podmetrics.go b/pkg/podmetrics/podmetrics.go
      index f7c386c..8a17f44 100644
      --- a/pkg/podmetrics/podmetrics.go
      +++ b/pkg/podmetrics/podmetrics.go
      @@ -37,7 +37,7 @@ var (
                              "network_name"})
       )
       
      -//UpdateForPod adds metrics for all the provided networks to the given pod.
      +// UpdateForPod adds metrics for all the provided networks to the given pod.
       func UpdateForPod(podName, namespace string, networks []podnetwork.Network) {
              for _, n := range networks {
                      if n.Interface == "" {
      

      Version-Release number of selected component (if applicable):

       

      How reproducible:

       

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              zshi@redhat.com Zenghui Shi
              zshi@redhat.com Zenghui Shi
              Weibin Liang Weibin Liang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: