Merge lp:~cprov/adt-continuous-deployer/refactoring-fixes into lp:adt-continuous-deployer

Proposed by Celso Providelo
Status: Merged
Approved by: Thomi Richards
Approved revision: 58
Merged at revision: 58
Proposed branch: lp:~cprov/adt-continuous-deployer/refactoring-fixes
Merge into: lp:adt-continuous-deployer
Diff against target: 44 lines (+6/-4)
2 files modified
cd.py (+5/-3)
reaper.py (+1/-1)
To merge this branch: bzr merge lp:~cprov/adt-continuous-deployer/refactoring-fixes
Reviewer Review Type Date Requested Status
Thomi Richards (community) Approve
Review via email: mp+260986@code.launchpad.net

Commit message

Missing get_revnos_for_spec() import and other drive-by flake8 issues.

Description of the change

Missing get_revnos_for_spec() import and other drive-by flake8 issues.

To post a comment you must log in.
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cd.py'
2--- cd.py 2015-06-02 00:38:10 +0000
3+++ cd.py 2015-06-03 17:33:24 +0000
4@@ -28,6 +28,7 @@
5 from ci_automation.branch import (
6 get_info_from_revno_dict,
7 get_info_message_from_revno_dict,
8+ get_revnos_for_spec,
9 )
10 from ci_automation.mojo_project_pool import (
11 MojoProjectPool,
12@@ -56,7 +57,8 @@
13 )
14 parser.add_argument('--branch', required=True)
15 parser.add_argument('--stage', required=True)
16- parser.add_argument('--use-project-pool', action='store_true', default=False)
17+ parser.add_argument('--use-project-pool',
18+ action='store_true', default=False)
19
20 # Parse known arguments, collect (and augment) the rest as 'mojo_args'.
21 args, mojo_args = parser.parse_known_args()
22@@ -112,8 +114,8 @@
23 )
24 try:
25 with pool.acquire_mojo_project() as project_name:
26- # Register deployment identifier regardless its deployment status.
27- # We don't want to deploy it again.
28+ # Register deployment identifier regardless its deployment
29+ # status. We don't want to deploy it again.
30 with open(identifier_path, 'w') as fd:
31 fd.write(info + '\n')
32
33
34=== modified file 'reaper.py'
35--- reaper.py 2015-05-28 00:21:30 +0000
36+++ reaper.py 2015-06-03 17:33:24 +0000
37@@ -54,7 +54,7 @@
38 return 1
39
40 name = os.path.basename(env_dir)
41- if juju.deployment_has_floating_ips(name, base):
42+ if juju.deployment_has_floating_ips(name, args.base):
43 print("""\
44 Cowardly refusing to reap that, since it has floating IP addresses assigned.
45

Subscribers

People subscribed via source and target branches

to all changes: