You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returndiag.Errorf("more than one Image found for name %s", d.Get("image").(string))
287
+
}
288
+
289
+
ifimage.IsDeprecated() {
290
+
ifd.Get("allow_deprecated_images").(bool) {
291
+
tflog.Warn(ctx, fmt.Sprintf("image %s is deprecated. It will continue to be available until %s", image.Name, image.Deprecated.AddDate(0, 3, 0).Format("2006-01-02")))
292
+
} else {
293
+
returndiag.Errorf("image %s is deprecated. It will continue to be available until %s. If you want to use it, specify the allow_deprecated_images option.", image.Name, image.Deprecated.AddDate(0, 3, 0).Format("2006-01-02"))
Copy file name to clipboardexpand all lines: website/docs/r/server.html.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -150,15 +150,16 @@ The following arguments are supported:
150
150
-`labels` - (Optional, map) User-defined labels (key-value pairs) should be created with.
151
151
-`backups` - (Optional, boolean) Enable or disable backups.
152
152
-`firewall_ids` - (Optional, list) Firewall IDs the server should be attached to on creation.
153
-
-`ignore_remote_firewall_ids` - (Optional, boolean) Ingores any updates
153
+
-`ignore_remote_firewall_ids` - (Optional, boolean) Ignores any updates
154
154
to the `firewall_ids` argument which were received from the server.
155
155
This should not be used in normal cases. See the documentation of the
156
-
`hcloud_firewall_attachment`resouce for a reason to use this
156
+
`hcloud_firewall_attachment`resource for a reason to use this
157
157
argument.
158
158
-`network` - (Optional) Network the server should be attached to on creation. (Can be specified multiple times)
159
159
-`placement_group_id` - (Optional, string) Placement Group ID the server added to on creation.
160
160
-`delete_protection` - (Optional, boolean) Enable or disable delete protection (Needs to be the same as `rebuild_protection`).
161
161
-`rebuild_protection` - (Optional, boolean) Enable or disable rebuild protection (Needs to be the same as `delete_protection`).
162
+
-`allow_deprecated_images` - (Optional, boolean) Enable the use of deprecated images (default: false). **Note** Deprecated images will be removed after three months. Using them is then no longer possible.
0 commit comments