Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

hnrkndrssn
Copy link
Contributor

@hnrkndrssn hnrkndrssn commented Feb 13, 2025

image
data "octopusdeploy_script_modules" "example" {
  skip         = 0
}

output "data_lookup" {
  value = data.octopusdeploy_script_modules.example.script_modules[0]
}

Before

+ data_lookup = {
  + description     = ""
  + id              = "LibraryVariableSets-82"
  + name            = "Hello"
  + script          = [
      + {
          + body   = ""
          + syntax = ""
        },
    ]
  + space_id        = "Spaces-1"
  + variable_set_id = "variableset-LibraryVariableSets-82"
}

After

+ data_lookup = {
  + description     = ""
  + id              = "LibraryVariableSets-82"
  + name            = "Hello"
  + script          = [
      + {
          + body   = <<-EOT
                function Say-Hello()
                {
                    Write-Output "Hello, Octopus!"
                }
            EOT
          + syntax = "PowerShell"
        },
    ]
  + space_id        = "Spaces-1"
  + variable_set_id = "variableset-LibraryVariableSets-82"
}

[sc-103152]

@hnrkndrssn hnrkndrssn self-assigned this Feb 13, 2025
@hnrkndrssn hnrkndrssn marked this pull request as ready for review February 13, 2025 02:53
@hnrkndrssn hnrkndrssn enabled auto-merge (squash) February 13, 2025 04:05
@hnrkndrssn hnrkndrssn merged commit 93a1ee0 into main Feb 21, 2025
24 checks passed
@hnrkndrssn hnrkndrssn deleted the henrik/scriptmodules/syntaxnbody branch February 21, 2025 06:41
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.

2 participants