Skip to content

Commit 31b72ed

Browse files
committed
Limit instance label length to 64 characters
Signed-off-by: P. J. Reed <[email protected]>
1 parent 2bfffb9 commit 31b72ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/drivers/linode/linode.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error {
310310
d.InstanceLabel = d.GetMachineName()
311311
}
312312

313+
if len(d.InstanceLabel) > 64 {
314+
d.InstanceLabel = d.InstanceLabel[0:64]
315+
}
316+
313317
return nil
314318
}
315319

0 commit comments

Comments
 (0)