~matsubara/maas/bootimages-cli

« back to all changes in this revision

Viewing changes to utils.py

  • Committer: Tarmac
  • Author(s): Diogo Matsubara
  • Date: 2014-02-27 22:34:42 UTC
  • mfrom: (231.2.6 add-zones-test)
  • Revision ID: tarmac-20140227223442-sw3i7exvxiwb39mw
[r=jtv][bug=][author=matsubara] add tests to exercise zones feature through the maas-cli

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    return process.returncode, stdout, stderr
84
84
 
85
85
 
86
 
def update_pxe_config():
87
 
    content = open('/etc/maas/import_pxe_files').read()
88
 
    content = content.replace(
89
 
        '#RELEASES="precise quantal raring saucy"',
90
 
        'RELEASES="precise saucy"')
91
 
    with open('/etc/maas/import_pxe_files', 'w') as f:
92
 
        f.write(content)
93
 
 
94
 
 
95
86
def retries(timeout=30, delay=1):
96
87
    """Helper for retrying something, sleeping between attempts.
97
88