Conditions | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # -*- coding: utf-8 -*- |
||
53 | def parse_password_check_repo(options): |
||
54 | """Check password and prompt if missing and check repo is provided.""" |
||
55 | if options.username and not options.password: |
||
56 | password = getpass.getpass() |
||
57 | else: |
||
58 | password = options.password |
||
59 | |||
60 | # Check if repo given |
||
61 | if not options.repository: |
||
62 | print('LOGHUB: Please define a repository name to this script. ' |
||
63 | 'See its help') |
||
64 | sys.exit(1) |
||
65 | return password |
||
66 |