Skip to content

Commit 4044aee

Browse files
authored
Add support for generic metadata (#193)
1 parent 97db0d8 commit 4044aee

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

iterative/resource_machine.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ func machineSchema() *map[string]*schema.Schema {
122122
Optional: true,
123123
Default: "",
124124
},
125+
"metadata": &schema.Schema{
126+
Type: schema.TypeMap,
127+
ForceNew: true,
128+
Optional: true,
129+
Elem: &schema.Schema{
130+
Type: schema.TypeString,
131+
},
132+
},
125133
}
126134
}
127135

iterative/resource_runner.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ func resourceRunner() *schema.Resource {
153153
Optional: true,
154154
Default: "",
155155
},
156+
"metadata": &schema.Schema{
157+
Type: schema.TypeMap,
158+
ForceNew: true,
159+
Optional: true,
160+
Elem: &schema.Schema{
161+
Type: schema.TypeString,
162+
},
163+
},
156164
},
157165
}
158166
}

0 commit comments

Comments
 (0)