~smoser/ubuntu/trusty/maas/lp-1172566

« back to all changes in this revision

Viewing changes to src/provisioningserver/tasks.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-04-03 13:45:02 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: package-import@ubuntu.com-20140403134502-8a6wvuqwyuekufh0
Tags: upstream-1.5+bzr2227
ImportĀ upstreamĀ versionĀ 1.5+bzr2227

Show diffs side-by-side

added added

removed removed

Lines of Context:
446
446
 
447
447
@task
448
448
@log_exception_text
449
 
def import_boot_images(http_proxy=None, main_archive=None, ports_archive=None,
450
 
                       cloud_images_archive=None, callback=None):
 
449
def import_boot_images(http_proxy=None, callback=None):
451
450
    env = dict(os.environ)
452
451
    if http_proxy is not None:
453
452
        env['http_proxy'] = http_proxy
454
453
        env['https_proxy'] = http_proxy
455
 
    if main_archive is not None:
456
 
        env['MAIN_ARCHIVE'] = main_archive
457
 
    if ports_archive is not None:
458
 
        env['PORTS_ARCHIVE'] = ports_archive
459
 
    if cloud_images_archive is not None:
460
 
        env['CLOUD_IMAGES_ARCHIVE'] = cloud_images_archive
461
454
    call_and_check(['sudo', '-n', '-E', 'maas-import-pxe-files'], env=env)
462
455
    if callback is not None:
463
456
        callback.delay()