Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Changing hostname in civo_instance replaces instead of updating #220

Closed
fernando-villalba opened this issue Jun 18, 2024 · 0 comments · Fixed by #226
Closed

[BUG] Changing hostname in civo_instance replaces instead of updating #220

fernando-villalba opened this issue Jun 18, 2024 · 0 comments · Fixed by #226
Assignees
Labels
bug Something isn't working

Comments

@fernando-villalba
Copy link
Contributor

Description

Issue

Changing the hostname and doing an apply replaces the entire instance instead of just updating the name.

You can use this code to test it

data "civo_disk_image" "debian" {
   filter {
        key = "name"
        values = ["debian-10"]
   }
}

resource "civo_instance" "foo" {
    hostname = "bleh" # create and then change this to something else
    tags = ["python", "nginx"]
    notes = "this is a note for the server"
    size = "g3.xsmall"
    disk_image = data.civo_disk_image.debian.diskimages[0].id
}

Acceptance Criteria

  • Change it so it updates the name, not replace the entire instance

The CLI and the UI allow you to change the name already.

Screenshots

No response

Additional information

No response

@fernando-villalba fernando-villalba added the bug Something isn't working label Jun 18, 2024
@uzaxirr uzaxirr self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants