File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2929from databricks_cli .version import print_version_callback , version
3030
3131
32+ TOKEN_LIFETIME_SEC = 60 * 60 * 24 * 90
33+
34+
3235@click .command (context_settings = CONTEXT_SETTINGS ,
3336 short_help = 'Create a token.' )
34- @click .option ('--lifetime-seconds' , required = False , default = 60 * 60 * 24 * 90 ,
35- help = "Number of seconds for the token to live for. The default is 129600 seconds or "
36- "90 days." )
37+ @click .option ('--lifetime-seconds' , required = False , default = TOKEN_LIFETIME_SEC ,
38+ help = "Number of seconds for the token to live for. The default is %d seconds or "
39+ "%d days." % ( TOKEN_LIFETIME_SEC , TOKEN_LIFETIME_SEC / 60 / 60 / 24 ) )
3740@click .option ('--comment' , required = True ,
3841 help = "String describing what the token is for." )
3942@debug_option
You can’t perform that action at this time.
0 commit comments