diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index ba816f523..5513ddc49 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -17,6 +17,7 @@ - [Backups] Delete unused snapshots related to other schedules (even no longer existing) (PR [#5949](https://github.com/vatesfr/xen-orchestra/pull/5949)) - [Jobs] Fix `job.runSequence` method (PR [#5944](https://github.com/vatesfr/xen-orchestra/pull/5944)) +- [Netbox] Fix error when testing plugin on versions older than 2.10 (PR [#5963](https://github.com/vatesfr/xen-orchestra/pull/5963)) ### Packages to release @@ -35,6 +36,7 @@ > > In case of conflict, the highest (lowest in previous list) `$version` wins. +- xo-server-netbox patch - vhd-lib minor - @xen-orchestra/backup minor - @xen-orchestra/proxy minor diff --git a/packages/xo-server-netbox/src/index.js b/packages/xo-server-netbox/src/index.js index 3bd5fbae5..77a822c90 100644 --- a/packages/xo-server-netbox/src/index.js +++ b/packages/xo-server-netbox/src/index.js @@ -662,7 +662,7 @@ class Netbox { } async test() { - const randomSuffix = Math.random().toString(36).slice(2) + const randomSuffix = Math.random().toString(36).slice(2, 11) const name = '[TMP] Xen Orchestra Netbox plugin test - ' + randomSuffix await this.#makeRequest('/virtualization/cluster-types/', 'POST', { name,