mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
fix if statement and condition
This commit is contained in:
parent
6e21ca50a0
commit
7f4a5ac413
@ -348,7 +348,7 @@ 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 != nil
|
if p.SecretKeyPath != ""
|
||||||
{
|
{
|
||||||
// Open the secret key file
|
// Open the secret key file
|
||||||
f, err := os.Open(p.SecretKeyPath)
|
f, err := os.Open(p.SecretKeyPath)
|
||||||
@ -361,6 +361,7 @@ func (p *Provisioner) deployConfigFiles(
|
|||||||
if err := comm.Upload(path.Join(confDir, secretKey), f); err != nil {
|
if err := comm.Upload(path.Join(confDir, secretKey), f); 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
Block a user