parameters: (json_flow, flow)
return_statement: return json_flow
docstring: Ensures all actions have uuids
docstring_summary: Ensures all actions have uuids
docstring_tokens: Ensures all actions have uuids
function: 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
function_tokens: 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