Skip to content

Commit fd28de5

Browse files
committed
fix: improve docs and warnings
1 parent 2976e86 commit fd28de5

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

docs/reference/manual/hcloud_primary-ip_create.md

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmd/primaryip/create.go

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ var CreateCmd = base.CreateCmd[*hcloud.PrimaryIP]{
2222
Long: `Create a Primary IP.
2323
2424
The --datacenter flag is deprecated. Use --location or --assignee-id instead.
25-
See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters.`,
25+
See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters.
26+
27+
The --assignee-type flag will be required together with the --assignee-id flag. Using
28+
the default value (server) for the --assignee-type flag is deprecated. Consider
29+
explicitly setting the --assignee-type flag.
30+
31+
See https://docs.hetzner.cloud/changelog#2026-04-27-primary-ips-will-return-unassigned
32+
and https://docs.hetzner.cloud/changelog#2026-04-27-primary-ips-make-assignee_type-optional.
33+
`,
2634
TraverseChildren: true,
2735
DisableFlagsInUseLine: true,
2836
}
@@ -80,9 +88,10 @@ See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters.`,
8088
if !cmd.Flags().Changed("assignee-type") {
8189
cmd.PrintErrln(
8290
"Warning: " +
83-
"The --assignee-type flag will soon be required together" +
84-
"with the --assignee-id flag. Consider explicitly setting " +
85-
"the --assignee-type flag.",
91+
"The --assignee-type flag will be required together " +
92+
"with the --assignee-id flag and will no longer default " +
93+
"to 'server'. Consider explicitly setting the " +
94+
"--assignee-type flag.",
8695
)
8796
}
8897
createOpts.AssigneeType = assigneeType

0 commit comments

Comments
 (0)