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

include template_ids in library variable set datasource #651

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

benPearce1
Copy link
Collaborator

@benPearce1 benPearce1 commented Jun 20, 2024

Fixes: #652

For the terraform:

data "octopusdeploy_library_variable_sets" "platform" {
  partial_name = "Variable Set Name"
  space_id = data.octopusdeploy_space.space.id
  skip = 0
  take = 1
}

output "lvs_template_ids" {
    value = data.octopusdeploy_library_variable_sets.platform.library_variable_sets[0].template_ids
}

before:

Changes to Outputs:
  + lvs_template_ids = {}

after:

Changes to Outputs:
  + lvs_template_ids = {
      + "Common.TP.AnotherOne"    = "71a27af8-8372-4937-aa05-9ce7148df8b7"
      + "Common.TP.Environment"   = "28a603b4-6d4a-4356-b9b0-0ee530c09bdf"
      + "Common.TP.Something"     = "4415c144-9ab8-4306-a665-442e6429bd75"
      + "Common.TP.SomethingElse" = "805a1923-bcdb-4c30-80f6-b875c6f747fd"
      + "Common.TP.Target"        = "734a1e2b-2faa-4759-a652-b555c07eff88"
    }

Copy link
Contributor

@hnrkndrssn hnrkndrssn left a comment

Choose a reason for hiding this comment

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

LGTM

@benPearce1 benPearce1 merged commit 9added4 into main Jun 20, 2024
34 of 36 checks passed
@benPearce1 benPearce1 deleted the bp/lvs-datasource-template-ids branch June 20, 2024 02:59
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.

Library Variable Sets data source missing template_ids map
2 participants