Change the Info to print resource name 23/110223/1
authorRitu Sood <ritu.sood@intel.com>
Thu, 16 Jul 2020 01:31:16 +0000 (18:31 -0700)
committerRitu Sood <ritu.sood@intel.com>
Thu, 16 Jul 2020 01:31:16 +0000 (18:31 -0700)
Issue-ID: MULTICLOUD-1005
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: Ifca8f939b0d2e8baccb7c97b3a1c857e16b59fa3

src/rsync/pkg/context/context.go

index 3ce6ee9..f6a33ad 100644 (file)
@@ -74,7 +74,7 @@ func terminateResource(ac appcontext.AppContext, c *kubeclient.Client, name stri
        }
        logutils.Info("Deleted::", logutils.Fields{
                "cluster":  cluster,
-               "resource": res,
+               "resource": name,
        })
        return nil
 }
@@ -124,7 +124,7 @@ func instantiateResource(ac appcontext.AppContext, c *kubeclient.Client, name st
        }
        logutils.Info("Installed::", logutils.Fields{
                "cluster":  cluster,
-               "resource": res,
+               "resource": name,
        })
        return nil
 }