File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -54,24 +54,18 @@ impl Module for Terraform {
54
54
loop {
55
55
// Based on the cloud provider, randomize a resource name
56
56
let resource = match cloud {
57
- "AWS" => {
58
- TERRAFORM_AWS_RESOURCES_LIST
59
- . iter ( )
60
- . choose ( & mut rng)
61
- . unwrap ( )
62
- }
63
- "AZURE" => {
64
- TERRAFORM_AZURE_RESOURCES_LIST
65
- . iter ( )
66
- . choose ( & mut rng)
67
- . unwrap ( )
68
- }
69
- "GCP" => {
70
- TERRAFORM_GCP_RESOURCES_LIST
71
- . iter ( )
72
- . choose ( & mut rng)
73
- . unwrap ( )
74
- }
57
+ "AWS" => TERRAFORM_AWS_RESOURCES_LIST
58
+ . iter ( )
59
+ . choose ( & mut rng)
60
+ . unwrap ( ) ,
61
+ "AZURE" => TERRAFORM_AZURE_RESOURCES_LIST
62
+ . iter ( )
63
+ . choose ( & mut rng)
64
+ . unwrap ( ) ,
65
+ "GCP" => TERRAFORM_GCP_RESOURCES_LIST
66
+ . iter ( )
67
+ . choose ( & mut rng)
68
+ . unwrap ( ) ,
75
69
_ => unreachable ! ( ) ,
76
70
} ;
77
71
You can’t perform that action at this time.
0 commit comments