ravening opened a new pull request #4046:
URL: https://github.com/apache/cloudstack/pull/4046
## Description
Display image store disk size used and total disk size in list imagestore
api response
<!-- For new features, provide link to FS, dev ML discussion etc. -->
<!-- In case of bug fix, the expected and actual behaviours, steps to
reproduce. -->
<!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be
closed when this PR gets merged -->
<!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
<!-- Fixes: # -->
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the
boxes that apply: -->
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
## Screenshots (if appropriate):
## How Has This Been Tested?
Before the change, this is the api response
```
(local) 🐵 > list imagestores
{
"count": 1,
"imagestore": [
{
"id": "4c2886-191f-4bcf-b73d-b822a3f67",
"name": "nfs://10.1.1.1:/data/secondary1",
"protocol": "nfs",
"providername": "NFS",
"scope": "ZONE",
"url": "nfs://10.1.1.1:/data/secondary1",
"zoneid": "864a09-8c64-4da4-a56b-e6adsfs17d4de",
"zonename": "zone1"
}
]
}
```
This is the api response after the change
```
(local) 🐵 > list imagestores
{
"count": 1,
"imagestore": [
{
"disksizetotal": 527370027008, <<<<<<<<<<<<<<<<<<<<<<
"disksizeused": 9650569216, <<<<<<<<<<<<<<<<<<<<<<
"id": "4sdf886-191f-4bcf-b7dsd-b8sdf213f67",
"name": "nfs://10.1.1.1:/data/secondary1",
"protocol": "nfs",
"providername": "NFS",
"scope": "ZONE",
"url": "nfs://10.1.1.1:/data/secondary1",
"zoneid": "8sff0b59-8c64-4da4-a56b-e6sdfrdsf4de",
"zonename": "zone1"
}
]
}
```
<!-- Please read the
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md)
document -->
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]