~sseman/juju-ci-tools/model-change-watcher-py3-2

« back to all changes in this revision

Viewing changes to assess_container_networking.py

  • Committer: Martin Packman
  • Date: 2016-02-11 15:22:35 UTC
  • mto: This revision was merged to the branch mainline in revision 1264.
  • Revision ID: martin.packman@canonical.com-20160211152235-wyktd2amfyoxbb0e
Refactor how juju feature flags are handled with new enable_feature method

Show diffs side-by-side

added added

removed removed

Lines of Context:
417
417
    args = parse_args(argv)
418
418
    configure_logging(args.verbose)
419
419
    bs_manager = BootstrapManager.from_args(args)
420
 
    bs_manager.client.enable_container_address_allocation()
 
420
    bs_manager.client.enable_feature('address-allocation')
421
421
    with cleaned_bootstrap_context(bs_manager, args) as ctx:
422
422
        assess_container_networking(bs_manager.client, args.machine_type)
423
423
    return ctx.return_code