Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tasks: decoding json values passed from WFC #96

Merged
merged 1 commit into from Jan 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions reana_workflow_engine_yadage/tasks.py
Expand Up @@ -9,6 +9,7 @@

from __future__ import absolute_import, print_function

import base64
import json
import logging
import os
Expand All @@ -25,8 +26,9 @@


def load_json(ctx, param, value):
"""Serialize click option values."""
return json.loads(value)
"""Decode and load json for click option."""
value = value[1:]
return json.loads(base64.standard_b64decode(value).decode())


@click.command()
Expand Down