fix: add missing keys when artifact is destroying

This commit is contained in:
Marin Salinas 2019-03-06 14:05:03 -06:00 committed by Megan Marsh
parent 8a6faf1ad3
commit cf1fdfef00
1 changed files with 3 additions and 0 deletions

View File

@ -71,12 +71,15 @@ func (a *Artifact) Destroy() error {
newConfig := &oapi.Config{ newConfig := &oapi.Config{
UserAgent: a.Config.UserAgent, UserAgent: a.Config.UserAgent,
AccessKey: a.Config.AccessKey,
SecretKey: a.Config.SecretKey, SecretKey: a.Config.SecretKey,
Service: a.Config.Service, Service: a.Config.Service,
Region: region, //New region Region: region, //New region
URL: a.Config.URL, URL: a.Config.URL,
} }
log.Printf("[DEBUG] New Client config %+v", newConfig)
skipClient := &http.Client{ skipClient := &http.Client{
Transport: &http.Transport{ Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, TLSClientConfig: &tls.Config{InsecureSkipVerify: true},