Project

Profile

Help

Issue #546

closed

Updating a distributors config does not accept null values

Added by jsherril@redhat.com about 9 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.4.1
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:

It appears that updating a distributors config does not let you set 'null' values for things that make sense, such as the checksum_type on a yum_distributor. I may want to set it back to the default value, but can't seem to do that.

Version-Release number of selected component (if applicable):
2.4.1

How reproducible:
Always

Steps to Reproduce:
1. Attempt to update a distributor's checksum back to the default value of null

Actual results:
Doesn't get updated

Expected results:
Should be updated

Additional info:
the call in question:
PUT /pulp/api/v2/repositories/Default_Organization-testproduct-sha256/distributors/Default_Organization-testproduct-sha256//

{"distributor_config":{"relative_url":"Default_Organization/Library/custom/testproductsha256","http":true,"https":true,"protected":true,"checksum_type":null}},

+ This bug was cloned from Bugzilla Bug #1146687 +

Also available in: Atom PDF