Skip to content

recipe definition and payload #26

Description

@kmeier1633

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions