Skip to content

Commit 74a6ec2

Browse files
committed
Update options.go
1 parent 874a260 commit 74a6ec2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

blox/options.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ func newOptions(o ...Option) (*options, error) {
6464
}
6565
}
6666
if opts.name == "" {
67-
return nil, errors.New("blox pool name must be specified")
67+
log.Warn("Pool name is empty, setting to '0' to trigger auto-discovery")
68+
opts.name = "0"
6869
}
6970
if opts.pingCount <= 0 {
7071
log.Warnf("ping count is not specified, using default of 5 instead of %d", opts.pingCount)

0 commit comments

Comments
 (0)