# Sync addon correction

**URL:** <https://discourse.getcockpit.com/t/sync-addon-correction/3425>\
**Category:** Addons\
**Created:** [October 30, 2026, 10:42am UTC](https://discourse.getcockpit.com/t/sync-addon-correction/3425 "2026-10-30T10:42:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barcsix](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/barcsix/32/1527_2.png) [@Barcsix](https://discourse.getcockpit.com/u/Barcsix)\
**Post date:** [October 30, 2026, 10:42am UTC](https://discourse.getcockpit.com/t/sync-addon-correction/3425/1 "2026-10-30T10:42:19Z")

</div>

Hey @artur ,

I was using in test env the Sync addon and noticed that on a sync job (push/pull) roles are duplicated. There’s just one line to correct :

```auto
//Line 85
if ($_role) {
  ❌ $role['_id'] = $_role['id'];
  ✅ $role['_id'] = $_role['_id'];
...

```

Now the \_id is recognized, and roles are not duplicated anymore.  
I’m not opening a pull request because Addons are not tracked in the repo.
