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

provider/aws: Updating CloudFront distribution to correct LoggingConfig #6407

Merged
merged 1 commit into from
May 4, 2016

Conversation

jrnt30
Copy link
Contributor

@jrnt30 jrnt30 commented Apr 28, 2016

  • Addresses the issue when local state file has logging_config populated and the user
    disables the configuration via the UI (or in this case an
    application of the TF config). This will now properly set the
    logging_config during the read operation and identify the state as
    diverging

Fixes #6390

return err
}
} else {
err = d.Set("logging_config", []interface{}{})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jrnt30, I think right here, you'd want to do the following instead:

err = d.Set("logging_config", schema.NewSet(loggingConfigHash, []interface{}{}))

The idea here being that even though it's an empty set you still probably want to pass a *schema.Set and the correct hash function.

…f disabled

- Addresses the issue when local state file has logging_config populated and the user
  disables the configuration via the UI (or in this case an
  application of the TF config).  This will now properly set the
  logging_config during the read operation and identify the state as
  diverging

Fixes hashicorp#6390
@catsby
Copy link
Contributor

catsby commented May 4, 2016

Excellent, thanks!

@catsby catsby merged commit 1c691dc into hashicorp:master May 4, 2016
bigkraig pushed a commit to ticketmaster/terraform that referenced this pull request May 5, 2016
…f disabled (hashicorp#6407)

- Addresses the issue when local state file has logging_config populated and the user
  disables the configuration via the UI (or in this case an
  application of the TF config).  This will now properly set the
  logging_config during the read operation and identify the state as
  diverging

Fixes hashicorp#6390
bigkraig pushed a commit to ticketmaster/terraform that referenced this pull request May 5, 2016
…f disabled (hashicorp#6407)

- Addresses the issue when local state file has logging_config populated and the user
  disables the configuration via the UI (or in this case an
  application of the TF config).  This will now properly set the
  logging_config during the read operation and identify the state as
  diverging

Fixes hashicorp#6390
xsellier pushed a commit to xsellier/terraform that referenced this pull request May 17, 2016
…f disabled (hashicorp#6407)

- Addresses the issue when local state file has logging_config populated and the user
  disables the configuration via the UI (or in this case an
  application of the TF config).  This will now properly set the
  logging_config during the read operation and identify the state as
  diverging

Fixes hashicorp#6390
cristicalin pushed a commit to cristicalin/terraform that referenced this pull request May 24, 2016
…f disabled (hashicorp#6407)

- Addresses the issue when local state file has logging_config populated and the user
  disables the configuration via the UI (or in this case an
  application of the TF config).  This will now properly set the
  logging_config during the read operation and identify the state as
  diverging

Fixes hashicorp#6390
@ghost
Copy link

ghost commented Apr 26, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed CloudFront logging_config change stored to state and not refreshed
4 participants