Update to use new method of accessing the godo client.

This commit is contained in:
Andrew Starr-Bochicchio 2019-01-09 11:36:24 -05:00
parent 07440ba1a6
commit 178ef85d1f
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ func testSweepCertificate(region string) error {
return err
}
client := meta.(*godo.Client)
client := meta.(*CombinedConfig).godoClient()
opt := &godo.ListOptions{PerPage: 200}
certs, _, err := client.Certificates.List(context.Background(), opt)

View File

@ -27,7 +27,7 @@ func testSweepDomain(region string) error {
return err
}
client := meta.(*godo.Client)
client := meta.(*CombinedConfig).godoClient()
opt := &godo.ListOptions{PerPage: 200}
domains, _, err := client.Domains.List(context.Background(), opt)

View File

@ -27,7 +27,7 @@ func testSweepFirewall(region string) error {
return err
}
client := meta.(*godo.Client)
client := meta.(*CombinedConfig).godoClient()
opt := &godo.ListOptions{PerPage: 200}
fws, _, err := client.Firewalls.List(context.Background(), opt)