func transformCloudSpec(spec environs.CloudSpec) environs.CloudSpec { // Rackspace regions are expected to be uppercase, but Juju // stores and displays them in lowercase in the CLI. Ensure // they're uppercase when they get to the Rackspace API. spec.Region = strings.ToUpper(spec.Region) return spec }