use ctx object from cliContext instead of a creating a new one
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
This commit is contained in:
		| @@ -35,7 +35,7 @@ import ( | ||||
| // defined. | ||||
| func AppContext(cliContext *cli.Context) (context.Context, context.CancelFunc) { | ||||
| 	var ( | ||||
| 		ctx       = context.Background() | ||||
| 		ctx       = cliContext.Context | ||||
| 		timeout   = cliContext.Duration("timeout") | ||||
| 		namespace = cliContext.String("namespace") | ||||
| 		cancel    context.CancelFunc | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tariq Ibrahim
					Tariq Ibrahim