@kumori/aurora-backend-handler 1.0.15 → 1.0.17

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.
@@ -1122,7 +1122,6 @@ export const updateAccount = async (account: Account, security: Security) => {
1122
1122
  account: account.name,
1123
1123
  provision_infrastructure: false,
1124
1124
  spec: {
1125
- spec: {
1126
1125
  api: providerName,
1127
1126
  credentials: {
1128
1127
  method: providerName,
@@ -1183,7 +1182,7 @@ export const updateAccount = async (account: Account, security: Security) => {
1183
1182
  ...(account.flavors?.small?.[0] && { smallVMFlavor: account.flavors?.small?.[0] }),
1184
1183
  ...(account.flavors?.medium?.[0] && { mediumVMFlavor: account.flavors.medium[0] }),
1185
1184
  // ...(account.flavors?.large?.[0] && { largeVMFlavor: account.flavors.large[0] }),
1186
- }
1185
+ },
1187
1186
  },
1188
1187
  meta: {
1189
1188
  labels: {
@@ -1192,7 +1191,6 @@ export const updateAccount = async (account: Account, security: Security) => {
1192
1191
  additionalProp3: "string",
1193
1192
  },
1194
1193
  },
1195
- },
1196
1194
  };
1197
1195
  }
1198
1196
  else {
@@ -55,10 +55,8 @@ const extractCloudProviderCredentials = (
55
55
  apiVersion: eventData.spec.credentials.openstack?.identity_api_version || "",
56
56
  authType: eventData.spec.credentials.openstack?.auth_type || "",
57
57
  authUrl: eventData.spec.credentials.openstack?.auth?.auth_url || "",
58
- credentialId:
59
- eventData.spec.credentials.openstack?.auth?.application_credential_id || "",
60
- credentialSecret:
61
- eventData.spec.credentials.openstack?.auth?.application_credential_secret || "",
58
+ credentialId: eventData.spec.credentials.openstack?.auth?.application_credential_id || "",
59
+ credentialSecret: eventData.spec.credentials.openstack?.auth?.application_credential_secret || "",
62
60
  };
63
61
  } else if (eventData.spec.credentials.aws) {
64
62
  providerType = "aws";
@@ -76,6 +74,13 @@ const extractCloudProviderCredentials = (
76
74
  clientId: eventData.spec.credentials.azure?.client_id || "",
77
75
  clientSecret: eventData.spec.credentials.azure?.client_secret || "",
78
76
  };
77
+ } else if (eventData.spec.credentials.opennebula) {
78
+ providerType = "opennebula";
79
+ credentials = {
80
+ username: eventData.spec.credentials.opennebula?.user || "",
81
+ password: eventData.spec.credentials.opennebula?.password || "",
82
+ endpoint: eventData.spec.credentials.opennebula?.xmlrpc || "",
83
+ };
79
84
  }
80
85
 
81
86
  return { providerType, credentials };
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "ws": "^8.18.2"
24
24
  },
25
25
  "name": "@kumori/aurora-backend-handler",
26
- "version": "1.0.15",
26
+ "version": "1.0.17",
27
27
  "description": "backend handler",
28
28
  "main": "backend-handler.ts",
29
29
  "repository": {