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

Fixes #26154 - implement pxedir method for operatingsystem base #6616

Merged
merged 1 commit into from Mar 25, 2019

Conversation

tbrisker
Copy link
Member

Windows OS doesn't implement the pxedir method, causing provisioining to
fail when trying to calculate the unique id for the medium provider.

@theforeman-bot
Copy link
Member

Issues: #26154

@@ -26,7 +26,7 @@ def interpolate_vars(pattern)

def unique_id
@unique_id ||= begin
digest = Base64.urlsafe_encode64(Digest::SHA1.digest(medium_uri(entity.operatingsystem.pxedir).to_s), padding: false)
digest = Base64.urlsafe_encode64(Digest::SHA1.digest(medium_uri(entity.operatingsystem.try(:pxedir)).to_s), padding: false)
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it won't be more complete adding pxedir method to operatingsystem.rb, so the interface would be a bit more formal.

Default MediumProvider tries to use pxedir method on the operating
system to generate a unique id. Not all OSes implement these method,
causing provisioning to fail for windows.
@tbrisker tbrisker changed the title Fixes #26154 - Allow medium provider to work with windows Fixes #26154 - implement pxedir method for operatingsystem base Mar 25, 2019
@ShimShtein ShimShtein merged commit f905973 into theforeman:develop Mar 25, 2019
@ShimShtein
Copy link
Member

Merged, thanks @tbrisker!

@tbrisker
Copy link
Member Author

1.20- 780c41a
1.21- f906f42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants