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

recipe definition and payload #26

Open
kmeier1633 opened this issue Jun 5, 2018 · 0 comments
Open

recipe definition and payload #26

kmeier1633 opened this issue Jun 5, 2018 · 0 comments

Comments

@kmeier1633
Copy link

These functions are missing the return statement.

def set_payload(self, payload):
    """
    Set the raw payload of this recipe
    :param str payload: the payload, as a string
    """
    self.data['payload'] = payload

def set_json_payload(self, payload):
    """
    Set the raw payload of this recipe
    :param dict payload: the payload, as a dict. The payload will be converted to a JSON string internally
    """
    self.data['payload'] = json.dumps(payload)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant