Merge lp:~pguimaraes/python-jujuclient/python-jujuclient into lp:python-jujuclient
Status: | Needs review |
---|---|
Proposed branch: | lp:~pguimaraes/python-jujuclient/python-jujuclient |
Merge into: | lp:python-jujuclient |
Diff against target: |
93 lines (+40/-11) 3 files modified
jujuclient/juju2/connector.py (+18/-9) test-requirements.txt (+0/-1) tox.ini (+22/-1) |
To merge this branch: | bzr merge lp:~pguimaraes/python-jujuclient/python-jujuclient |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ryan Beisner (community) | Needs Information | ||
David Ames (community) | Needs Fixing | ||
juju-deployers | Pending | ||
Review via email: mp+352408@code.launchpad.net |
Description of the change
Juju version 2.5 returns controllers' UUIDs as 'controller-uuid' key
instead of 'uuid'. Set same value for both keys on controller dict if
Juju's minor version is equal or greater than 2.5; this allows
to integrate with newer Jujuversion while keeping backward compatibility.
Unmerged revisions
- 103. By Pedro Guimarães
-
Clean-up of unused methods on jujuclient/utils.py
Update to get KeyError exception on juju2/connector.py - 102. By Pedro Guimarães
-
Juju version 2.5 returns controllers' UUIDs as 'controller-uuid' flags
instead of 'uuid'. Set same value for both keys on controller dict to
allow it to work with newer version while keeping older format as well.Revised test-related files. Added py36 testing scenario.
- 101. By Pedro Guimarães
-
Correcting get_juju_
minor_version( ) to also work with format:
<MAJOR VERSION>.<MINOR VERSION>.<RELEASES> -<SYSTEM INFO>
of juju --version - 100. By Pedro Guimarães
-
Added Juju minor version retrieval on utils.py
If minor version is equal or greater than 2.5, then controller['uuid']
equals controller['controller- uuid'] on connector.py - 99. By Pedro Guimarães
-
Juju version 2.5 returns controllers' UUIDs as 'controller-uuid' flags
instead of 'uuid'. Set same value for both keys on controller dict to
allow it to work with newer version while keeping older format as well.
rbeisner@ rby:~/bzr/ python- jujuclient$ flake8 jujuclient/ utils.py: 9:1: E302 expected 2 blank lines, found 1 utils.py: 16:1: E302 expected 2 blank lines, found 1 utils.py: 23:1: E302 expected 2 blank lines, found 1 juju2/connector .py:1:1: E902 IndentationError: unindent does not match any outer indentation level juju2/connector .py:43: 1: E305 expected 2 blank lines after class or function definition, found 0 juju2/connector .py:44: 8: E999 IndentationError: unexpected indent juju2/connector .py:44: 9: E113 unexpected indentation
jujuclient/
jujuclient/
jujuclient/
jujuclient/
jujuclient/
jujuclient/
jujuclient/