File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,9 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) {
232
232
false ,
233
233
fmt .Sprintf ("Turns on the %s mode. The flag --credentials-file must also be passed." , JetstackSecureOAuth ),
234
234
)
235
- _ = c .PersistentFlags ().MarkHidden ("venafi-cloud" )
235
+ if err := c .PersistentFlags ().MarkHidden ("venafi-cloud" ); err != nil {
236
+ panic (err )
237
+ }
236
238
c .PersistentFlags ().StringVarP (
237
239
& cfg .ClientID ,
238
240
"client-id" ,
@@ -334,7 +336,9 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) {
334
336
false ,
335
337
"Deprecated. No longer has an effect." ,
336
338
)
337
- _ = c .PersistentFlags ().MarkDeprecated ("disable-compression" , "no longer has an effect" )
339
+ if err := c .PersistentFlags ().MarkDeprecated ("disable-compression" , "no longer has an effect" ); err != nil {
340
+ panic (err )
341
+ }
338
342
339
343
// This is a hidden feature flag we use to build the "Machine Hub" feature
340
344
// gradually without impacting customers. Once the feature is GA, we will
@@ -345,7 +349,9 @@ func InitAgentCmdFlags(c *cobra.Command, cfg *AgentCmdFlags) {
345
349
false ,
346
350
"Enables the MachineHub mode. The agent will push data to CyberArk MachineHub." ,
347
351
)
348
- _ = c .PersistentFlags ().MarkHidden ("machine-hub" )
352
+ if err := c .PersistentFlags ().MarkHidden ("machine-hub" ); err != nil {
353
+ panic (err )
354
+ }
349
355
350
356
}
351
357
You can’t perform that action at this time.
0 commit comments