~pwlars/adt-continuous-deployer/clean-up-core-images

« back to all changes in this revision

Viewing changes to cd.py

  • Committer: Celso Providelo
  • Date: 2015-04-02 19:29:27 UTC
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: celso.providelo@canonical.com-20150402192927-mauoxpa9xfljvkgl
Refactoring scripts into a small local utilities files, so they become more readable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import subprocess
26
26
 
27
27
 
28
 
from branch_utils import get_identifier
 
28
from ci_automation.branch import get_identifier
29
29
 
30
30
 
31
31
def deploy(args):
46
46
    parser.add_argument('--branch', required=True)
47
47
    parser.add_argument('--stage', required=True)
48
48
 
49
 
    # Parse known arguments, collect (and augment) the rest as 'mojo_args'. 
 
49
    # Parse known arguments, collect (and augment) the rest as 'mojo_args'.
50
50
    args, mojo_args = parser.parse_known_args()
51
51
    mojo_args.extend([
52
52
        '--branch', args.branch,