##################################
def command_pull():
- # type: () -> None
+ # type: () -> int
logger.info('Pulling latest %s...' % args.image)
call_throws([container_path, 'pull', args.image])
- out, err, ret = call_throws([
- container_path, 'inspect',
- '--format', '{{.Id}}',
- args.image])
- ver = CephContainer(args.image, 'ceph', ['--version']).run()
- image_id = normalize_container_id(out.strip())
- print(json.dumps({
- 'ceph_version': ver.strip(),
- 'image_id': image_id,
- }, indent=4, sort_keys=True))
+ return command_inspect_image()
##################################