clever-tools 2.10.0-beta.1 → 2.10.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unrelease (????-??-??)
4
4
 
5
+ ## 2.10.0-beta.2 (2022-09-13)
6
+
7
+ * NetworkGroups fix wrong function call.
8
+
5
9
  ## 2.10.0-beta.0 (2022-09-06)
6
10
 
7
11
  * Add NetworkGroups commands `clever ng --help`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clever-tools",
3
- "version": "2.10.0-beta.1",
3
+ "version": "2.10.0-beta.2",
4
4
  "description": "Command Line Interface for Clever Cloud.",
5
5
  "main": "bin/clever.js",
6
6
  "keywords": [
@@ -33,7 +33,7 @@ async function getId(ownerId, ngIdOrLabel) {
33
33
  }
34
34
 
35
35
  async function getByLabel(owner_id, label) {
36
- const networkGroups = await ngApi.get({ owner_id }).then(sendToApi);
36
+ const networkGroups = await ngApi.listNetworkGroups({ owner_id }).then(sendToApi);
37
37
  const filteredNgs = networkGroups.filter((ng) => ng.label === label);
38
38
 
39
39
  if (filteredNgs.length === 0) {