initial changes for API v2.0.0:
- added access manager api token to auth object - update account page to show pool based resource quotas - update config logic to use pool based resource quotas - minor improvements and cleanup
This commit is contained in:
+2
-2
@@ -27,7 +27,7 @@ func GetLoginRealms() ([]Realm, error) {
|
||||
ctx := common.RequestContext{
|
||||
Cookies: nil,
|
||||
}
|
||||
body := map[string]any{}
|
||||
body := []any{}
|
||||
res, code, err := common.RequestGetAPI("/proxmox/access/domains", ctx, &body)
|
||||
if err != nil {
|
||||
return realms, err
|
||||
@@ -36,7 +36,7 @@ func GetLoginRealms() ([]Realm, error) {
|
||||
return realms, fmt.Errorf("request to /proxmox/access/domains resulted in %+v", res)
|
||||
}
|
||||
|
||||
for _, v := range body["data"].([]any) {
|
||||
for _, v := range body {
|
||||
v = v.(map[string]any)
|
||||
realm := Realm{}
|
||||
err := mapstructure.Decode(v, &realm)
|
||||
|
||||
Reference in New Issue
Block a user