18858: Don't treat as an error empty usernames on system users.
[arvados.git] / tools / sync-users / sync-users.go
index 4b679ffe1889b1bd8804a88d958f74dae2814a78..626d9d04221721bc0f56d2a8503b29b25fc3f0b2 100644 (file)
@@ -249,8 +249,10 @@ func doMain(cfg *ConfigParams) error {
                        return err
                }
                if uID == "" {
-                       emptyUserIDs = append(emptyUserIDs, u.UUID)
-                       log.Printf("Empty %s found in user %s - ignoring", cfg.UserID, u.UUID)
+                       if u.UUID != cfg.AnonUserUUID && u.UUID != cfg.SysUserUUID {
+                               emptyUserIDs = append(emptyUserIDs, u.UUID)
+                               log.Printf("Empty %s found in user %s - ignoring", cfg.UserID, u.UUID)
+                       }
                        continue
                }
                if cfg.CaseInsensitive {