Skip to content

Commit 0319cb7

Browse files
pjreedLBGarber
andauthored
Update pkg/drivers/linode/linode.go
Co-authored-by: Lena Garber <[email protected]>
1 parent 31b72ed commit 0319cb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/drivers/linode/linode.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error {
311311
}
312312

313313
if len(d.InstanceLabel) > 64 {
314-
d.InstanceLabel = d.InstanceLabel[0:64]
314+
d.InstanceLabel = d.InstanceLabel[:64]
315+
log.Warnf("The name for this machine exceeds the 64 character Linode label limit. Truncating to %s", d.InstanceLabel)
315316
}
316317

317318
return nil

0 commit comments

Comments
 (0)