Merge pull request #1741 from jwhonce/wip/humanize

Change humanize to use MB vs MiB.
This commit is contained in:
OpenShift Merge Robot
2018-11-01 09:18:29 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class History(AbstractActionBase):
if self._args.human: if self._args.human:
fields.update({ fields.update({
'size': 'size':
humanize.naturalsize(details.size, binary=True), humanize.naturalsize(details.size),
'created': 'created':
humanize.naturaldate( humanize.naturaldate(
podman.datetime_parse(details.created)), podman.datetime_parse(details.created)),

View File

@ -65,7 +65,7 @@ class Images(AbstractActionBase):
'created': 'created':
humanize.naturaldate(podman.datetime_parse(image.created)), humanize.naturaldate(podman.datetime_parse(image.created)),
'size': 'size':
humanize.naturalsize(int(image.size), binary=True), humanize.naturalsize(int(image.size)),
'repoDigests': 'repoDigests':
' '.join(image.repoDigests), ' '.join(image.repoDigests),
}) })