summaryrefslogtreecommitdiff
path: root/contrib/python/pypodman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-11-28 08:57:10 -0800
committerGitHub <noreply@github.com>2018-11-28 08:57:10 -0800
commit8c15a1e067f510ca8471ca2a81cdf704e374332a (patch)
tree03794e2a7f450ad3a71ebb73b70628a9d6dd7e08 /contrib/python/pypodman
parentf3289fed2e8c0183820e8d86dabe6a262cb6f601 (diff)
parentf8c5e75a10fb0a9a3a3c113075c129521c5c5099 (diff)
downloadpodman-8c15a1e067f510ca8471ca2a81cdf704e374332a.tar.gz
podman-8c15a1e067f510ca8471ca2a81cdf704e374332a.tar.bz2
podman-8c15a1e067f510ca8471ca2a81cdf704e374332a.zip
Merge pull request #1881 from jwhonce/bug/1867
Fixes #1867
Diffstat (limited to 'contrib/python/pypodman')
-rw-r--r--contrib/python/pypodman/pypodman/lib/actions/commit_action.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/contrib/python/pypodman/pypodman/lib/actions/commit_action.py b/contrib/python/pypodman/pypodman/lib/actions/commit_action.py
index 21665ad0b..21924e938 100644
--- a/contrib/python/pypodman/pypodman/lib/actions/commit_action.py
+++ b/contrib/python/pypodman/pypodman/lib/actions/commit_action.py
@@ -30,7 +30,8 @@ class Commit(AbstractActionBase):
choices=('oci', 'docker'),
default='oci',
type=str.lower,
- help='Set the format of the image manifest and metadata',
+ help='Set the format of the image manifest and metadata.'
+ ' (Ignored.)',
)
parser.add_argument(
'--iidfile',
@@ -40,7 +41,8 @@ class Commit(AbstractActionBase):
parser.add_argument(
'--message',
'-m',
- help='Set commit message for committed image',
+ help='Set commit message for committed image'
+ ' (Only on docker images.)',
)
parser.add_argument(
'--pause',
@@ -80,8 +82,16 @@ class Commit(AbstractActionBase):
flush=True)
return 1
else:
- ident = ctnr.commit(self.opts['image'][0], **self.opts)
- print(ident)
+ ident = ctnr.commit(
+ self.opts['image'][0],
+ change=self.opts.get('change', None),
+ message=self.opts.get('message', None),
+ pause=self.opts['pause'],
+ author=self.opts.get('author', None),
+ )
+
+ if not self.opts['quiet']:
+ print(ident)
except podman.ErrorOccurred as e:
sys.stdout.flush()
print(