Sun Warrior Chief: "We will let you leave, but you must never speak to anyone of our people and its secrets. Seriously. Don't."
Aang to his entire friend group: "So then the Sun Warriors' secret dragons showed up! It was so sick, you guys!"
True. But technically he only mentioned the dragon not the sun warriors. It’s possible he told them they just ran into dragons.