summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-11-01 09:18:29 -0700
committerGitHub <noreply@github.com>2018-11-01 09:18:29 -0700
commit641dbda92657ef66c594c9265f10acde748635ae (patch)
treeefafef3d2ac6fdc88bba7ef1c40da31dadb49a4c
parent20a3a53c2faea408af47023ea60c76b5b5ecea3c (diff)
parent0f232037f6cfb24807dac2f78f1d645cea535b27 (diff)
downloadpodman-641dbda92657ef66c594c9265f10acde748635ae.tar.gz
podman-641dbda92657ef66c594c9265f10acde748635ae.tar.bz2
podman-641dbda92657ef66c594c9265f10acde748635ae.zip
Merge pull request #1741 from jwhonce/wip/humanize
Change humanize to use MB vs MiB.
-rw-r--r--contrib/python/pypodman/pypodman/lib/actions/history_action.py2
-rw-r--r--contrib/python/pypodman/pypodman/lib/actions/images_action.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/python/pypodman/pypodman/lib/actions/history_action.py b/contrib/python/pypodman/pypodman/lib/actions/history_action.py
index 3e3f539fc..f9aaa54f6 100644
--- a/contrib/python/pypodman/pypodman/lib/actions/history_action.py
+++ b/contrib/python/pypodman/pypodman/lib/actions/history_action.py
@@ -60,7 +60,7 @@ class History(AbstractActionBase):
if self._args.human:
fields.update({
'size':
- humanize.naturalsize(details.size, binary=True),
+ humanize.naturalsize(details.size),
'created':
humanize.naturaldate(
podman.datetime_parse(details.created)),
diff --git a/contrib/python/pypodman/pypodman/lib/actions/images_action.py b/contrib/python/pypodman/pypodman/lib/actions/images_action.py
index d28e32db9..b8f5ccc78 100644
--- a/contrib/python/pypodman/pypodman/lib/actions/images_action.py
+++ b/contrib/python/pypodman/pypodman/lib/actions/images_action.py
@@ -65,7 +65,7 @@ class Images(AbstractActionBase):
'created':
humanize.naturaldate(podman.datetime_parse(image.created)),
'size':
- humanize.naturalsize(int(image.size), binary=True),
+ humanize.naturalsize(int(image.size)),
'repoDigests':
' '.join(image.repoDigests),
})