From 6ac44a41cf0e77b347aa674fc0f70dc2b6bd4086 Mon Sep 17 00:00:00 2001 From: Ahmed Abdrabo Date: Tue, 27 Oct 2020 13:52:35 +0100 Subject: [PATCH] Fix a bug with managing the users on m1000e chassis We were writing all the users to id=2 and the last write wins. --- providers/dell/m1000e/configure.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/providers/dell/m1000e/configure.go b/providers/dell/m1000e/configure.go index 0ebbba16..b7efeeb6 100644 --- a/providers/dell/m1000e/configure.go +++ b/providers/dell/m1000e/configure.go @@ -83,8 +83,7 @@ func (m *M1000e) User(cfgUsers []*cfgresources.User) (err error) { return err } - id := 1 - for _, cfgUser := range cfgUsers { + for id, cfgUser := range cfgUsers { userID := id + 1 //setup params to post