Merge lp://qastaging/~negronjl/charm-tools/charm-tools-proof-multiple-maintainer into lp://qastaging/~charmers/charm-tools/trunk

Proposed by Juan L. Negron
Status: Merged
Merged at revision: 152
Proposed branch: lp://qastaging/~negronjl/charm-tools/charm-tools-proof-multiple-maintainer
Merge into: lp://qastaging/~charmers/charm-tools/trunk
Diff against target: 25 lines (+11/-4)
1 file modified
scripts/proof (+11/-4)
To merge this branch: bzr merge lp://qastaging/~negronjl/charm-tools/charm-tools-proof-multiple-maintainer
Reviewer Review Type Date Requested Status
Clint Byrum (community) Needs Fixing
Review via email: mp+117569@code.qastaging.launchpad.net

Description of the change

Modified proof to accept multiple maintainers by using a yaml list.
ie: maintainer: [Juan Negron <email address hidden>, Tom Haddon <email address hidden>]

To post a comment you must log in.
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hey Juan. Great quick turn around.

I dislike copy/paste code, so I'd prefer that the check only be coded once. One way to do that without needing a function is just to do this:

if type(charm['maintainer']) == list:
  maintainers = charm['maintainer']
else:
  maintainers = [charm['maintainer']]

And then just iterate over maintainers. Otherwise the check can just be moved into an inline function.

review: Needs Fixing
Revision history for this message
Juan L. Negron (negronjl) wrote :

Thanks Clint:

I fixed the code and committed the changes.

-Juan

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches