This commit is contained in:
2025-11-18 16:20:26 +03:00
parent 4b3f21d9be
commit e42fbcef39
397 changed files with 17560 additions and 1501 deletions

View File

@@ -86,7 +86,8 @@ func flattenConsumption(info node.ConsumptionInfo) []map[string]interface{} {
}
tempFree := map[string]interface{}{
"ram": info.Free.RAM,
"ram": info.Free.RAM,
"vcpu": info.Free.VCPU,
}
tempRes["free"] = []map[string]interface{}{
tempFree,

View File

@@ -43,6 +43,10 @@ func dataSourceNodeSchemaMake() map[string]*schema.Schema {
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"vcpu": {
Type: schema.TypeInt,
Computed: true,
},
"ram": {
Type: schema.TypeInt,
Computed: true,