Merge lp://staging/~andrewjbeach/juju-ci-tools/bootstrap-args into lp://staging/juju-ci-tools
Proposed by
Andrew James Beach
Status: | Merged |
---|---|
Merged at revision: | 1631 |
Proposed branch: | lp://staging/~andrewjbeach/juju-ci-tools/bootstrap-args |
Merge into: | lp://staging/juju-ci-tools |
Diff against target: |
124 lines (+58/-9) 2 files modified
jujupy.py (+25/-9) tests/test_jujupy.py (+33/-0) |
To merge this branch: | bzr merge lp://staging/~andrewjbeach/juju-ci-tools/bootstrap-args |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | Approve | ||
Review via email: mp+307587@code.staging.launchpad.net |
Description of the change
Added a new parameter to get_bootstrap_args: agent_version. It also appears
in the bootstrap methods so you can pass in the value.
This conficts with upload_tools, if both are given an exception is raised.
Modified get_bootstrap_args and bootstrap methods in EnvJujuClient.
Added tests for the new parameter in test_jujupy.py.
To post a comment you must log in.
I don't see any handling for juju 1.x. Did you test it?
Since EnvJujuClient's bootstrap implementation is used by EnvJujuClient1X, but its get_bootstrap_args has not been updated, I expect to fail because too many parameters are supplied.
I would expect EnvJujuClient1X .get_bootstrap_ args to: get_bootstrap_ args, so it would accept agent_version, defaulted to None (like EnvJujuClient2B 2.get_bootstrap _args)
1. always have a signature matching EnvJujuClient.
2. raise an exception (e.g. ValueError) if agent_version is not None.