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

Workaround for #109 #123

Merged
merged 8 commits into from
Jan 8, 2024
Merged

Workaround for #109 #123

merged 8 commits into from
Jan 8, 2024

Conversation

MKletz
Copy link
Contributor

@MKletz MKletz commented Dec 8, 2023

This is a workaround for #109

This should not be the permanent fix as the first task would need replicated in any playbook installing additional PowerShell modules. These additional settings should be configured on the VM at provisioning time. However this will get it functional in the short term.

@willtome
Copy link
Collaborator

@youtous could you take a look at the error in the CI?

@youtous
Copy link
Contributor

youtous commented Dec 15, 2023

@youtous could you take a look at the error in the CI?

The CI is failing due to a missing a comment, this is fixed in #125, could you merge as it is a simple comment fix?

@youtous
Copy link
Contributor

youtous commented Dec 16, 2023

I've re-run the CI, it was failing due to 504 on console.redhat.com, now it works.

ansible.windows.win_powershell:
script: |
$nuget_version = (Get-PackageProvider -Name NuGet -ListAvailable).version
$nuget_target_version = '2.8.5.201'
Copy link
Collaborator

Choose a reason for hiding this comment

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

for proper version comparison, should this be something like $nuget_target_version = [Version]::new('2.8.5.201') instead? i ask as someone with no powershell proficiency, but i've seen version comparisons get strange with standard greater/less than operators in bash before so i thought i'd look for a powershell example. i'm not sure if specifying the variable as a Version type would cause issues with the Install-PackageProvider call below this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PowerShell is typically smart enough to do the conversion on the fly by I don't have an issue hard typing it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in latest push

Copy link
Collaborator

@jce-redhat jce-redhat left a comment

Choose a reason for hiding this comment

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

thanks @MKletz, if you're feeling good about the version comparison change then everything else looks fine to me.

@MKletz
Copy link
Contributor Author

MKletz commented Jan 8, 2024

thanks @MKletz, if you're feeling good about the version comparison change then everything else looks fine to me.

yup should be all good

@willtome willtome merged commit 1af584b into ansible:main Jan 8, 2024
1 check passed
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.

4 participants