Merge lp://qastaging/~frankban/juju-quickstart/fix-120 into lp://qastaging/juju-quickstart
Proposed by
Francesco Banconi
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 88 | ||||
Proposed branch: | lp://qastaging/~frankban/juju-quickstart/fix-120 | ||||
Merge into: | lp://qastaging/juju-quickstart | ||||
Diff against target: |
199 lines (+42/-24) 4 files modified
quickstart/__init__.py (+1/-1) quickstart/tests/test_app.py (+1/-1) quickstart/tests/test_watchers.py (+31/-14) quickstart/watchers.py (+9/-8) |
||||
To merge this branch: | bzr merge lp://qastaging/~frankban/juju-quickstart/fix-120 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+225665@code.qastaging.launchpad.net |
Description of the change
Fix quickstart for Juju 1.20.
In the addresses included in the MachineInfo,
replace NetworkScope with Scope, falling back to
NetworkScope for backwards compatibility.
Tests:
make check
QA:
Run quickstart with both 1.18 and 1.20 versions of Juju.
To post a comment you must log in.
Reviewers: mp+225665_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix quickstart for Juju 1.20.
In the addresses included in the MachineInfo,
replace NetworkScope with Scope, falling back to
NetworkScope for backwards compatibility.
Tests:
make check
QA:
Run quickstart with both 1.18 and 1.20 versions of Juju.
https:/ /code.launchpad .net/~frankban/ juju-quickstart /fix-120/ +merge/ 225665
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/111860043/
Affected files (+44, -24 lines): __init_ _.py tests/test_ app.py tests/test_ watchers. py watchers. py
A [revision details]
M quickstart/
M quickstart/
M quickstart/
M quickstart/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision:
<email address hidden>
+New revision:
<email address hidden>
Index: quickstart/ __init_ _.py __init_ _.py' __init_ _.py 2014-06-17 16:07:50 +0000 __init_ _.py 2014-07-04 13:16:42 +0000
=== modified file 'quickstart/
--- quickstart/
+++ quickstart/
@@ -45,7 +45,7 @@
Once Juju has been installed, the command can also be run as a juju plugin,
without the hyphen ("juju quickstart").
"""
-VERSION = (1, 4, 0)
+VERSION = (1, 4, 1)
def get_version():
Index: quickstart/ watchers. py watchers. py' watchers. py 2014-04-04 15:49:16 +0000 watchers. py 2014-07-04 13:09:11 +0000
=== modified file 'quickstart/
--- quickstart/
+++ quickstart/
@@ -35,23 +35,23 @@
[
{'NetworkName' : '',
'Type' : 'hostname',
'Value' : 'eu-west- 1.compute. example. com'},
{'NetworkName' : '',
'Type' : 'hostname',
'Value' : 'eu-west- 1.example. internal' },
{'NetworkName' : '',
'Type' : 'ipv4',
'Value' : '444.222.444.222'},
{'NetworkName' : '',
'Type' : 'ipv4',
'Value' : '10.42.47.10'},
{'NetworkName' : '',
'Type' : 'ipv6',
'Value' : 'fe80:: 92b8:d0ff: fe94:8f8c' },
- 'NetworkScope': 'public',
+ 'Scope': 'public',
- 'NetworkScope': 'local-cloud',
+ 'Scope': 'local-cloud',
- 'NetworkScope': 'public',
+ 'Scope': 'public',
- 'NetworkScope': 'local-cloud',
+ 'Scope': 'local-cloud',
- 'NetworkScope': '',
+ 'Scope': '',
]
@@ -60,11 +60,11 @@
[
{'NetworkName' : '',
'Type' : 'ipv4',
'Value' : '10.0.3.42'},
{'NetworkName' : '',
'Type' : 'ipv6',
'Value' : 'fe80:: 216:3eff: fefd:787e' },
- 'NetworkScope': '',
+ 'Scope': '',
- 'NetworkScope': '',
+ 'Scope': '',
]
@@ -79,7 +79,8 @@
value = address['Value']
# Exclude empty values and ipv6 addresses.
if value and (address['Type'] != IPV6_ADDRESS):
- scope = add...