Must correct condition ">= 0" to "is not None" in quotas_client.py file

Registered by Rajalakshmi Ganesan

As per Jay Pipes Comment in

https://review.openstack.org/#/c/19372/6/tempest/services/compute/admin/xml/quotas_client.py

Below was the comment:

Although it is technically legal to compare None to 0, it isn't particularly recommended. Could you replace all the '>= 0' occurrences in this file with "is not None"?

Should just be like this:

if injected_file_content_bytes is not None:
...

The reason for this is partly so we are able to test things like setting cores == 0 (to effectively disable an account).

If I missed the use of >= 0 in the JSON client, please forgive me and correct that file as well. Thanks!

Hence I raise this blue print so as to implement the comment.

Blueprint information

Status:
Complete
Approver:
Ravikumar Venkatesan
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
Rajalakshmi Ganesan
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Rajalakshmi Ganesan
Completed by
Rajalakshmi Ganesan

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/correction-in-quotas-client,n,z

Addressed by: https://review.openstack.org/21779
    Correction in quota_client's condition logic

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.