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

Unexpected Machine showing in Group #8696

Closed
scme0 opened this issue Mar 21, 2024 · 2 comments
Closed

Unexpected Machine showing in Group #8696

scme0 opened this issue Mar 21, 2024 · 2 comments
Assignees
Labels
kind/bug This issue represents a verified problem we are committed to solving

Comments

@scme0
Copy link

scme0 commented Mar 21, 2024

Severity

Sev-3-Low - Not Blocking

Version

2024.1.11885

Latest Version

I could reproduce the problem in the latest build

What happened?

The customer was using a script to get the hostname of a machine on a deployment, then looping through this and displaying the name pre-2024.1, and this was working correctly. Now since they've upgraded to 2024.1, an extra machine is being pushed into the group (Machines-1) causing errant data to be created. Tested this internally going from 2023.4 to 2024.1 on-prem and while I didn't get an actual value pushed into the hostname list I did get a blank entry, which I feel shouldn't be there.
User is using the following line: 'Set-OctopusVariable -name "MachineHostnames" -value #{Octopus.Machine.Hostname}' Customer has a workaround.

Before update:
image

After update:
image

Reproduction

Create a script step with this script:

Set-OctopusVariable -name "MachineHostnames" -value $OctopusParameters["Octopus.Machine.Hostname"]
Write-host "Host" $OctopusParameters["Octopus.Machine.Hostname"]

Then a second script step with this script:

#{each machine in Octopus.Action[Run a Script].Output}
Write-Host Host: #{machine.MachineHostnames}
#{/each}

Error and Stacktrace

No response

More Information

No response

Workaround

No response

@scme0 scme0 added the kind/bug This issue represents a verified problem we are committed to solving label Mar 21, 2024
@scme0 scme0 closed this as completed Mar 21, 2024
@octoreleasebot
Copy link

Release Note: Fix issue where extra machines would appear in the Machine group on deployment steps

@Octobob
Copy link
Member

Octobob commented May 16, 2024

🎉 The fix for this issue has been released in:

Release stream Release
2024.1 2024.1.12087
2024.2 2024.2.3101
2024.3+ all releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This issue represents a verified problem we are committed to solving
Projects
None yet
Development

No branches or pull requests

3 participants