Skip to content

Commit e590271

Browse files
authored
Merge pull request #1803 from shiftstack/create-instance-nil
🐛 Fix potential panic during instance create
2 parents 3707a7c + f3f2959 commit e590271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/services/compute/instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func (s *Service) createInstanceImpl(eventObject runtime.Object, openStackCluste
348348
return createdInstance.State() == infrav1.InstanceStateActive, nil
349349
})
350350
if err != nil {
351-
record.Warnf(eventObject, "FailedCreateServer", "Failed to create server %s: %v", createdInstance.Name(), err)
351+
record.Warnf(eventObject, "FailedCreateServer", "Failed to create server %s: %v", instanceSpec.Name, err)
352352
return nil, err
353353
}
354354

0 commit comments

Comments
 (0)