Skip to content

Commit 876bdbd

Browse files
committed
catch no given config id earlier
1 parent 2126938 commit 876bdbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lwdriver/core.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ func (self *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error {
123123
self.LwApiDomain = opts.String("lw-api-domain")
124124

125125
self.LwComputeConfigId = opts.Int("lw-config-id")
126+
if self.LwComputeConfigId == 0 {
127+
// TODO private parent child support
128+
return errors.New("must give a lw-config-id")
129+
}
126130
self.LwComputeZoneId = opts.Int("lw-zone-id")
127131
self.LwComputeNodeHostname = opts.String("lw-node-hostname")
128132
self.LwComputeNodeRootPassword = opts.String("lw-node-root-password")

0 commit comments

Comments
 (0)