James Paton-Smith
06/25/2024, 12:27 PMdefined() function can do this. Is that true? Never used this function before and official documentation doesn't seem to confirm that.bastelfreak
06/25/2024, 12:43 PMJames Paton-Smith
06/25/2024, 12:49 PMOptional[String] $location = undef,
Array[String] $uris = [$location], # deb822
I'd like to make the module error if both $location and $uris are explicitly defined by the user. But it's perfectly fine for one or the other to be defined by the user.
I'm basically trying to ensure backward compatibility while moving from a String type to an Array[String]bastelfreak
06/25/2024, 12:50 PM$location is set?James Paton-Smith
06/25/2024, 12:51 PMbastelfreak
06/25/2024, 12:52 PMJames Paton-Smith
06/25/2024, 12:54 PMCVQuesty
06/25/2024, 1:48 PM