Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Commit

Permalink
version: fix for Docker containers
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #634
Approved by: baude
  • Loading branch information
giuseppe authored and rh-atomic-bot committed Sep 19, 2016
1 parent bfb760e commit eafb060
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Atomic/info.py
Expand Up @@ -28,14 +28,18 @@ def cli_version(subparser):
versionp.add_argument("-r", "--recurse", default=False, dest="recurse",
action="store_true",
help=_("recurse through all layers"))
versionp.set_defaults(_class=Info, func='info')
versionp.set_defaults(_class=Info, func='version')
versionp.add_argument("image", help=_("container image"))


class Info(Atomic):
def __init__(self):
super(Info, self).__init__()

def version(self):
self.args.force_remote_info = False
self.info()

def info(self):
"""
Retrieve and print all LABEL information for a given image.
Expand Down

0 comments on commit eafb060

Please sign in to comment.