Project

Profile

Help

Issue #795

closed

MissingResource is raised when required key 'units' is missing during schedule creation

Added by ipanova@redhat.com about 9 years ago. Updated almost 5 years ago.

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

Description

$ curl -i -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X POST -k -u admin:admin -d '{"schedule":"P1D"}' "https://localhost/pulp/api/v2/consumers/c1/schedules/content/install/"
HTTP/1.1 404 NOT FOUND
Date: Wed, 18 Mar 2015 15:23:06 GMT
Server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod_wsgi/3.5 Python/2.7.5
Content-Encoding: utf-8
Content-Length: 418
Content-Type: application/json

{"http_request_method": "POST", "exception": null, "error_message": "Missing resource(s): resource_id=['units']", "_href": "/pulp/api/v2/consumers/c1/schedules/content/install/", "http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"resource_id": ["units"]}}, "description": "Missing resource(s): resource_id=['units']", "sub_errors": []}, "traceback": null, "resources": {"resource_id": ["units"]}}

I expect 400 and MissingValue

Also available in: Atom PDF