| 74 | |
| 75 | |
| 76 | def configure_and_update_options(options): |
| 77 | if options.dac_connection and options.server and not \ |
| 78 | options.server.lower().startswith("admin:"): |
| 79 | options.server = "admin:" + options.server |
| 80 | |
| 81 | if not options.integrated_auth: |
| 82 | if not options.username: |
| 83 | options.username = input(u'Username (press enter for sa):') or u'sa' |
| 84 | if not options.password: |
| 85 | pw = getpass.getpass() |
| 86 | if pw is not None: |
| 87 | pw = pw.replace('\r', '').replace('\n', '') |
| 88 | options.password = pw |
| 89 | |
| 90 | |
| 91 | def create_config_dir_for_first_use(): |