Skip to content

Fixed: [TF] data source "cloudconnexa_user" not working properly #20

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

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

michaelfmnk
Copy link
Contributor

Issue:

In terraform there is concept of “data source”, it is used usually like this: we know that in the some cloud provider there is a resource, and we know it’s name and we want to use this resource, by it’s name, as references:

data "cloudconnexa_network" "name" {
  name = "sasa"
}

output "cloudconnexa_network" {
  value = data.cloudconnexa_network.name
}
data "cloudconnexa_user_group" "name" {
  name = "xxx"
}
output "cloudconnexa_user_group" {
  value = data.cloudconnexa_user_group.name
}

But for next code below it gives an error:

data "cloudconnexa_user" "name" {
  username = "sa12121"
}

CleanShot 2024-07-26 at 13 41 54@2x

data "cloudconnexa_user" should only require 1 filed = “username”.

@michaelfmnk michaelfmnk requested a review from sahaqaa July 26, 2024 11:42
@sahaqaa sahaqaa force-pushed the feature/cloudconnexa_user_fix branch from 7ab7e4b to 9b7d21f Compare July 26, 2024 16:10
Copy link
Contributor

@sahaqaa sahaqaa left a comment

Choose a reason for hiding this comment

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

👍

@sahaqaa sahaqaa marked this pull request as ready for review July 26, 2024 16:24
@sahaqaa sahaqaa requested a review from a team as a code owner July 26, 2024 16:24
@sahaqaa sahaqaa merged commit 2352d60 into main Jul 26, 2024
1 check passed
@sahaqaa sahaqaa deleted the feature/cloudconnexa_user_fix branch July 26, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants