(json_flow, flow)
return json_flow
Ensures all actions have uuids
Ensures all actions have uuids
Ensures all actions have uuids
def migrate_to_version_10_1(json_flow, flow):
    """
    Ensures all actions have uuids
    """
    json_flow = map_actions(json_flow, cleanse_group_names)
    for actionset in json_flow["action_sets"]:
        for action in actionset["actions"]:
            uuid = action.get("uuid", None)
            if not uuid:
                action["uuid"] = str(uuid4())
    return json_flow
def migrate_to_version_10_1 ( json_flow , flow ) : json_flow = map_actions ( json_flow , cleanse_group_names ) for actionset in json_flow [ "action_sets" ] : for action in actionset [ "actions" ] : uuid = action . get ( "uuid" , None ) if not uuid : action [ "uuid" ] = str ( uuid4 ( ) ) return json_flow