"openstack volume create" sending null values in create requests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
New
|
Undecided
|
Unassigned |
Bug Description
The "openstack volume create" command is sending null values for unset fields in create requests. For example, when running "openstack volume create --size 1 testvolume", the result request is:
{
"volume": {
"status": "creating",
"user_id": null,
"name": "testvolume",
"imageRef": null,
"availabili
"description": null,
"multiattach": false,
"attach_
"volume_type": null,
"metadata": {},
"consistenc
"source_volid": null,
"snapshot_id": null,
"project_id": null,
"source_
"size": 1
}
}
Unset fields should probably be omitted from the request rather than sent as null.