You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/08/31 04:30:50 UTC
[GitHub] [cloudstack-cloudmonkey] Pearl1594 opened a new pull request #95: Display output in human readable format
Pearl1594 opened a new pull request #95:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/95
Fixes: https://github.com/apache/cloudstack-cloudmonkey/issues/94
When output format is set to anything other than JSON, it is observed that large values for example, size, etc are represented in scientific format. This PR ensures consistency in representing such values in the output between JSON and other formats, by displaying them in human readable format.
Prior Fix:
```
(primateqa) 🐱 > set output table
(primateqa) 🐱 > list snapshots id=087937b3-eb30-4c22-8ad5-46067a628699 filter=virtualsize,
count = 1
snapshot:
+-----------------+
| VIRTUALSIZE |
+-----------------+
| 2.147483648e+10 |
+-----------------+
or
(primateqa) 🐱 > list volumes id=002c3dd3-fc4c-4b1e-82e2-2a4b851b207d filter=size,
count = 1
volume:
+-----------------+
| SIZE |
+-----------------+
| 1.073741824e+11 |
+-----------------+
```
Post Fix:
```
(primate) 🐱 > set output text
(primate) 🐱 > list snapshots id=087937b3-eb30-4c22-8ad5-46067a628699 filter=virtualsize,
snapshot:
virtualsize = 21474836480
(primate) 🐱 > list snapshots id=087937b3-eb30-4c22-8ad5-46067a628699 filter=virtualsize,
count = 1
snapshot:
+-------------+
| VIRTUALSIZE |
+-------------+
| 21474836480 |
+-------------+
OR
(primate) 🐱 > list volumes id=002c3dd3-fc4c-4b1e-82e2-2a4b851b207d filter=size,
count = 1
volume:
+--------------+
| SIZE |
+--------------+
| 107374182400 |
+--------------+
```
--
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.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-cloudmonkey] pdion891 commented on pull request #95: Display output in human readable format
Posted by GitBox <gi...@apache.org>.
pdion891 commented on pull request #95:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/95#issuecomment-910433133
that's already better!
--
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.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-cloudmonkey] pdion891 edited a comment on pull request #95: Display output in human readable format
Posted by GitBox <gi...@apache.org>.
pdion891 edited a comment on pull request #95:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/95#issuecomment-910433133
that's already better! but not quite I'm hoping we could expose.
--
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.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-cloudmonkey] rhtyd merged pull request #95: Display output in human readable format
Posted by GitBox <gi...@apache.org>.
rhtyd merged pull request #95:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/95
--
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.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack-cloudmonkey] rhtyd merged pull request #95: Display output in human readable format
Posted by GitBox <gi...@apache.org>.
rhtyd merged pull request #95:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/95
--
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.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org