Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 471221 Details for
Bug 666435
cobbler buildiso incorrectly listed in Reference Guide - Was: cobbler get-loaders ignores proxy setting
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch Proposed
cobbler-proxy-environment-bz666435.patch (text/plain), 1.78 KB, created by
Marcelo Moreira de Mello
on 2010-12-30 22:12:27 UTC
(
hide
)
Description:
Patch Proposed
Filename:
MIME Type:
Creator:
Marcelo Moreira de Mello
Created:
2010-12-30 22:12:27 UTC
Size:
1.78 KB
patch
obsolete
>--- ./cobbler/action_dlcontent.py.orig 2010-12-30 19:35:23.711437906 -0200 >+++ ./cobbler/action_dlcontent.py 2010-12-30 19:35:32.432365781 -0200 >@@ -60,13 +60,33 @@ > ( "%s/menu.c32-3.61" % content_server, "%s/menu.c32" % dest), > ) > >- self.logger.info("downloading content required to netboot all arches") >- for f in files: >- src = f[0] >- dst = f[1] >- if os.path.exists(dst) and not force: >- self.logger.info("path %s already exists, not overwriting existing content, use --force if you wish to update" % dst) >- continue >+ proxies = {} >+ for var in os.environ.keys(): >+ if (var.lower() == "http_proxy"): >+ proxies['http'] = os.environ[var] >+ >+ if (var.lower() == "ftp_proxy"): >+ proxies['ftp'] = os.environ[var] >+ >+ if (len(proxies) > 0): >+ for f in files: >+ src = f[0] >+ dst = f[1] >+ if os.path.exists(dst) and not force: >+ self.logger.info("path %s already exists, not overwriting existing content, use --force if you wish to update" % dst) >+ continue >+ os.chdir(dest) >+ self.logger.info("downloading %s to %s" % (src,dst)) >+ urlgrabber.grabber.urlgrab(src, proxies=proxies) >+ >+ else: >+ self.logger.info("downloading content required to netboot all arches") >+ for f in files: >+ src = f[0] >+ dst = f[1] >+ if os.path.exists(dst) and not force: >+ self.logger.info("path %s already exists, not overwriting existing content, use --force if you wish to update" % dst) >+ continue > self.logger.info("downloading %s to %s" % (src,dst)) > urlgrabber.urlgrab(src,dst) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 666435
: 471221 |
473400