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{
UserAgent: a.Config.UserAgent,
AccessKey: a.Config.AccessKey,
SecretKey: a.Config.SecretKey,
Service: a.Config.Service,
Region: region, //New region
URL: a.Config.URL,
}
log.Printf("[DEBUG] New Client config %+v", newConfig)
skipClient := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},