~sinzui/juju-ci-tools/login-u

« back to all changes in this revision

Viewing changes to assess_bootstrap.py

  • Committer: Curtis Hovey
  • Date: 2017-02-28 20:34:53 UTC
  • mfrom: (1912.3.13 bootstrap-to-2)
  • Revision ID: curtis@canonical.com-20170228203453-x2wq6oqjx0a9qzt2
Honour the --to arg when BootstrapManager creates a client.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
    """Assess bootstraping with the --to option."""
92
92
    if to is None:
93
93
        raise ValueError('--to not given when testing to')
94
 
    with thin_booted_context(bs_manager, to=to) as client:
 
94
    with thin_booted_context(bs_manager) as client:
95
95
        log.info('To {} bootstrap successful.'.format(to))
96
96
        addr = get_controller_hostname(client)
97
97
    if addr != to:
122
122
    parser.add_argument('--local-metadata-source',
123
123
                        action='store', default=None,
124
124
                        help='Directory with pre-loaded metadata.')
125
 
    parser.add_argument('--to', action='store', default=None,
126
 
                        help='bootstrap to (when part=to only)')
127
125
    return parser.parse_args(argv)
128
126
 
129
127