Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Snapshots:2023.01
cobbler
fix_proxy_url_ext_migration_none_value.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_proxy_url_ext_migration_none_value.patch of Package cobbler
Index: cobbler-3.3.3/cobbler/settings/migrations/V3_2_1.py =================================================================== --- cobbler-3.3.3.orig/cobbler/settings/migrations/V3_2_1.py +++ cobbler-3.3.3/cobbler/settings/migrations/V3_2_1.py @@ -189,6 +189,10 @@ def migrate(settings: dict) -> dict: settings[mgmt_parameters]["from_cobbler"] ) + # proxy_url_ext -> None to '' + if settings["proxy_url_ext"] is None: + settings["proxy_url_ext"] = "" + # rename old settings filename filename = "/etc/cobbler/settings" if os.path.exists(filename): Index: cobbler-3.3.3/tests/test_data/V3_2_0/settings.yaml =================================================================== --- cobbler-3.3.3.orig/tests/test_data/V3_2_0/settings.yaml +++ cobbler-3.3.3/tests/test_data/V3_2_0/settings.yaml @@ -446,7 +446,7 @@ always_write_dhcp_entries: 0 # external proxy - used by: get-loaders, reposync, signature update # eg: proxy_url_ext: "http://192.168.1.1:8080" (HTTP) # or: proxy_url_ext: "https://192.168.1.1:8443" (HTTPS) -proxy_url_ext: "" +proxy_url_ext: # internal proxy - used by systems to reach cobbler for templates # eg: proxy_url_int: "http://10.0.0.1:8080" @@ -464,4 +464,4 @@ proxy_url_int: "" #convert_server_to_ip: 0 # include other configuration snippets -include: [ "/code/tests/test_data/V3_2_0/settings.d/*.settings" ] \ No newline at end of file +include: [ "/code/tests/test_data/V3_2_0/settings.d/*.settings" ]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor