Skip to content

Commit

Permalink
Merge pull request #302 from cloudflare/force-using-resource-type
Browse files Browse the repository at this point in the history
generate: always provide a `--resource-type` flag
  • Loading branch information
jacobbednarz authored Aug 31, 2021
2 parents c461099 + 512c2e8 commit cacf98e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/app/cf-terraforming/cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ var generateCmd = &cobra.Command{

func generateResources() func(cmd *cobra.Command, args []string) {
return func(cmd *cobra.Command, args []string) {
if resourceType == "" {
log.Fatal("you must define a resource type to generate")
}

zoneID = viper.GetString("zone")
accountID = viper.GetString("account")

Expand Down

0 comments on commit cacf98e

Please sign in to comment.