Skip to content

Commit aedf539

Browse files
committed
Add support for status in node pool for container
1 parent ebfc9b3 commit aedf539

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

oci/containerengine_node_pool_data_source.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ func ContainerengineNodePoolDataSource() *schema.Resource {
103103
Type: schema.TypeString,
104104
Computed: true,
105105
},
106+
"status": {
107+
Type: schema.TypeString,
108+
Computed: true,
109+
},
106110
},
107111
},
108112
},

oci/containerengine_node_pool_resource.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ func ContainerengineNodePoolResource() *schema.Resource {
141141
Type: schema.TypeString,
142142
Computed: true,
143143
},
144+
"status": {
145+
Type: schema.TypeString,
146+
Computed: true,
147+
},
144148
},
145149
},
146150
},
@@ -604,5 +608,13 @@ func NodeErrorToMap(obj *oci_containerengine.NodeError) map[string]interface{} {
604608
result["message"] = string(*obj.Message)
605609
}
606610

611+
if obj.OpcRequestId != nil {
612+
result["opc_request_id"] = string(*obj.OpcRequestId)
613+
}
614+
615+
if obj.Status != nil {
616+
result["status"] = string(*obj.Status)
617+
}
618+
607619
return result
608620
}

0 commit comments

Comments
 (0)