Skip to content

Commit 5808f4a

Browse files
owainlewisprydie
authored andcommitted
Fix incorrect error check in provisioner.go. (#278)
1 parent 09398e1 commit 5808f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/volume/provisioner/core/provisioner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func NewOCIProvisioner(
9898
}
9999

100100
metadata, mdErr := metadata.New().Get()
101-
if err != nil {
101+
if mdErr != nil {
102102
logger.With(zap.Error(mdErr)).Warnf("Unable to retrieve instance metadata.")
103103
}
104104

0 commit comments

Comments
 (0)