Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Add missing elements to RunStatus enum #8

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

james-emerton
Copy link
Contributor

There were some elements missing which could cause a ValidationError while accessing the status.

I've copied the list from the Terraform API docs, in the same order as they appear there to make maintenance easy.

https://www.terraform.io/docs/cloud/api/run.html

There were some elements missing which could cause a `ValidationError` while accessing the `status`.

I've copied the list from the Terraform API docs, in the same order as they appear there to make maintenance easy.

https://www.terraform.io/docs/cloud/api/run.html
Copy link

@mvanholsteijn mvanholsteijn left a comment

Choose a reason for hiding this comment

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

This is the list of states as defined by https://www.terraform.io/docs/cloud/api/run.html#run-states

Copy link
Contributor

@alex-ikse alex-ikse left a comment

Choose a reason for hiding this comment

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

Please sort RunStatus values.

@james-emerton
Copy link
Contributor Author

Hi @alex-ikse,

I've listed the enum values in the order they appear in the TFC documentation deliberately. I believe this makes the list easier to maintain, should additional elements be added over time.

Copy link
Contributor

@alex-ikse alex-ikse left a comment

Choose a reason for hiding this comment

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

Hi @james-emerton
It's a sensible point of view ;)
I accept your PR and will create a PR on the terraform documentation to sort the list :-D

@alex-ikse alex-ikse merged commit db336e8 into adeo:master Oct 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants