diff --git a/sztp-agent/cmd/disable.go b/sztp-agent/cmd/disable.go index 98d9a06a..3ce70a4d 100644 --- a/sztp-agent/cmd/disable.go +++ b/sztp-agent/cmd/disable.go @@ -33,7 +33,7 @@ func Disable() *cobra.Command { cmd := &cobra.Command{ Use: "disable", Short: "Run the disable command", - RunE: func(c *cobra.Command, _ []string) error { + RunE: func(_ *cobra.Command, _ []string) error { a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert) return a.RunCommandDisable() }, diff --git a/sztp-agent/cmd/enable.go b/sztp-agent/cmd/enable.go index 66b9143b..745bd795 100644 --- a/sztp-agent/cmd/enable.go +++ b/sztp-agent/cmd/enable.go @@ -33,7 +33,7 @@ func Enable() *cobra.Command { cmd := &cobra.Command{ Use: "enable", Short: "Run the enable command", - RunE: func(c *cobra.Command, _ []string) error { + RunE: func(_ *cobra.Command, _ []string) error { a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert) return a.RunCommandEnable() }, diff --git a/sztp-agent/cmd/run.go b/sztp-agent/cmd/run.go index ee99dbbd..8d2792ca 100644 --- a/sztp-agent/cmd/run.go +++ b/sztp-agent/cmd/run.go @@ -33,7 +33,7 @@ func Run() *cobra.Command { cmd := &cobra.Command{ Use: "run", Short: "Exec the run command", - RunE: func(c *cobra.Command, _ []string) error { + RunE: func(_ *cobra.Command, _ []string) error { a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert) return a.RunCommand() }, diff --git a/sztp-agent/cmd/status.go b/sztp-agent/cmd/status.go index 6b09f0cd..cf5043a7 100644 --- a/sztp-agent/cmd/status.go +++ b/sztp-agent/cmd/status.go @@ -33,7 +33,7 @@ func Status() *cobra.Command { cmd := &cobra.Command{ Use: "status", Short: "Run the status command", - RunE: func(c *cobra.Command, _ []string) error { + RunE: func(_ *cobra.Command, _ []string) error { a := secureagent.NewAgent(bootstrapURL, serialNumber, dhcpLeaseFile, devicePassword, devicePrivateKey, deviceEndEntityCert, bootstrapTrustAnchorCert) return a.RunCommandStatus() },