remove unused if
This commit is contained in:
parent
7f4a5ac413
commit
cd58da773c
|
@ -348,20 +348,16 @@ func (p *Provisioner) deployConfigFiles(
|
||||||
return fmt.Errorf("Uploading %s failed: %v", validationKey, err)
|
return fmt.Errorf("Uploading %s failed: %v", validationKey, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if p.SecretKeyPath != ""
|
|
||||||
{
|
|
||||||
// Open the secret key file
|
// Open the secret key file
|
||||||
f, err := os.Open(p.SecretKeyPath)
|
s, err := os.Open(p.SecretKeyPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
defer f.Close()
|
defer s.Close()
|
||||||
|
|
||||||
// Copy the secret key to the new instance
|
// Copy the secret key to the new instance
|
||||||
if err := comm.Upload(path.Join(confDir, secretKey), f); err != nil {
|
if err := comm.Upload(path.Join(confDir, secretKey), s); err != nil {
|
||||||
return fmt.Errorf("Uploading %s failed: %v", secretKey, err)
|
return fmt.Errorf("Uploading %s failed: %v", secretKey, err)
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make strings.Join available for use within the template
|
// Make strings.Join available for use within the template
|
||||||
|
|
Loading…
Reference in New Issue