Skip to content

Commit

Permalink
cloud config deref empty --> cloud config pointer nil
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuchard committed Nov 8, 2024
1 parent 5c246d8 commit b3d88fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/backup_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func hclDecodeConfig(filePath string) (*BackupConfig, error) {
}

// validate a cloud config block was specified
if *backupConfig.CloudConfig == (CloudConfig{}) {
if backupConfig.CloudConfig == nil {
log.Print("the cloud_config block is required in the input configuration file")
return nil, errors.New("cloud_config block absent")
}
Expand Down

0 comments on commit b3d88fd

Please sign in to comment.