Skip to content

Commit c23dd85

Browse files
committed
Do not create etcd name file if etcd is not in use
etcd.setName was being called during managed driver creation, even if the managed driver (etcd) is not in use. Let etcd.Register handle calling setName. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
1 parent b51167a commit c23dd85

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/etcd/etcd.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ func (e *ETCD) SetControlConfig(config *config.Control) error {
188188
return err
189189
}
190190
e.address = address
191-
192-
return e.setName(false)
191+
return nil
193192
}
194193

195194
// Test ensures that the local node is a voting member of the target cluster,

0 commit comments

Comments
 (0)