Generate HINT language for missing configuration
(optname, both_env_and_param)
| 384 | |
| 385 | |
| 386 | def _config_hint_generate(optname, both_env_and_param): |
| 387 | """Generate HINT language for missing configuration""" |
| 388 | env = optname.replace('-', '_').upper() |
| 389 | |
| 390 | if both_env_and_param: |
| 391 | option = '--' + optname.lower() |
| 392 | return ('Pass "{0}" or set the environment variable "{1}".' |
| 393 | .format(option, env)) |
| 394 | else: |
| 395 | return 'Set the environment variable {0}.'.format(env) |
| 396 | |
| 397 | |
| 398 | def s3_explicit_creds(args): |
no test coverage detected