Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9510)

Issue 34260044: Run juju init if environments.yaml is missing

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by matthew.scott
Modified:
10 years, 5 months ago
Reviewers:
bac, frankban, mp+196969
Visibility:
Public.

Description

Run juju init if environments.yaml is missing Create environments.yaml and use local provider if environments.yaml is not found. To test: make check To QA: 1. mv ~/.juju/environments.yaml ~/.juju/environments.yaml.bak 2. .venv/bin/python juju-quickstart <bundle> # should run juju init and juju switch local 3. ensure deployment goes as planned, ensure ~/.juju/environments.yaml is default from init 4. mv ~/.juju/environments.yaml.bak ~/.juju/environments.yaml https://code.launchpad.net/~makyo/juju-quickstart/create-environments/+merge/196969 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Run juju init if environments.yaml is missing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -2 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M quickstart/app.py View 1 1 chunk +19 lines, -0 lines 0 comments Download
M quickstart/manage.py View 1 2 chunks +6 lines, -0 lines 0 comments Download
M quickstart/tests/test_app.py View 1 1 chunk +34 lines, -0 lines 0 comments Download
M quickstart/tests/test_manage.py View 1 3 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 6
matthew.scott
Please take a look.
10 years, 5 months ago (2013-11-27 19:58:14 UTC) #1
bac
Code LGTM. I cannot do QA right now, though. https://codereview.appspot.com/34260044/diff/1/quickstart/app.py File quickstart/app.py (right): https://codereview.appspot.com/34260044/diff/1/quickstart/app.py#newcode93 quickstart/app.py:93: ...
10 years, 5 months ago (2013-11-27 20:28:52 UTC) #2
matthew.scott
NB: this is for fixing #1247214 quickly; future work with environments.yaml will not use juju ...
10 years, 5 months ago (2013-11-27 21:31:46 UTC) #3
bac
QA OK
10 years, 5 months ago (2013-11-27 22:11:57 UTC) #4
frankban
The branch is good Matthew, thanks. LGTM with the change requested below. https://codereview.appspot.com/34260044/diff/1/quickstart/app.py File quickstart/app.py ...
10 years, 5 months ago (2013-12-02 17:19:27 UTC) #5
matthew.scott
10 years, 5 months ago (2013-12-02 22:39:07 UTC) #6
*** Submitted:

Run juju init if environments.yaml is missing

Create environments.yaml and use local provider if environments.yaml is not
found.

To test: make check

To QA:
1. mv ~/.juju/environments.yaml ~/.juju/environments.yaml.bak
2. .venv/bin/python juju-quickstart <bundle> # should run juju init and juju
switch local
3. ensure deployment goes as planned, ensure ~/.juju/environments.yaml is
default from init
4. mv ~/.juju/environments.yaml.bak ~/.juju/environments.yaml

R=bac, frankban
CC=
https://codereview.appspot.com/34260044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b