Update to use new method of accessing the godo client.
This commit is contained in:
parent
07440ba1a6
commit
178ef85d1f
|
@ -35,7 +35,7 @@ func testSweepCertificate(region string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
client := meta.(*godo.Client)
|
client := meta.(*CombinedConfig).godoClient()
|
||||||
|
|
||||||
opt := &godo.ListOptions{PerPage: 200}
|
opt := &godo.ListOptions{PerPage: 200}
|
||||||
certs, _, err := client.Certificates.List(context.Background(), opt)
|
certs, _, err := client.Certificates.List(context.Background(), opt)
|
||||||
|
|
|
@ -27,7 +27,7 @@ func testSweepDomain(region string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
client := meta.(*godo.Client)
|
client := meta.(*CombinedConfig).godoClient()
|
||||||
|
|
||||||
opt := &godo.ListOptions{PerPage: 200}
|
opt := &godo.ListOptions{PerPage: 200}
|
||||||
domains, _, err := client.Domains.List(context.Background(), opt)
|
domains, _, err := client.Domains.List(context.Background(), opt)
|
||||||
|
|
|
@ -27,7 +27,7 @@ func testSweepFirewall(region string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
client := meta.(*godo.Client)
|
client := meta.(*CombinedConfig).godoClient()
|
||||||
|
|
||||||
opt := &godo.ListOptions{PerPage: 200}
|
opt := &godo.ListOptions{PerPage: 200}
|
||||||
fws, _, err := client.Firewalls.List(context.Background(), opt)
|
fws, _, err := client.Firewalls.List(context.Background(), opt)
|
||||||
|
|
Loading…
Reference in New Issue