Skip to content

Commit

Permalink
Fixes #26154 - implement pxedir method for operatingsystem base
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit f905973)
  • Loading branch information
tbrisker committed Mar 25, 2019
1 parent bbd1a9f commit 780c41a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions app/models/operatingsystem.rb
Expand Up @@ -210,6 +210,10 @@ def pxe_files(medium_provider, _arch = nil, host = nil)
end
end

def pxedir
""
end

def kernel(medium_provider)
bootfile(medium_provider, :kernel)
end
Expand Down
4 changes: 0 additions & 4 deletions app/models/operatingsystems/rancheros.rb
Expand Up @@ -13,10 +13,6 @@ def url_for_boot(file)
PXEFILES[file]
end

def pxedir
''
end

def display_family
'RancherOS'
end
Expand Down
4 changes: 0 additions & 4 deletions app/models/operatingsystems/xenserver.rb
Expand Up @@ -10,10 +10,6 @@ def pxe_type
"xenserver"
end

def pxedir
""
end

def xen(medium_provider)
bootfile(medium_provider, :xen)
end
Expand Down

0 comments on commit 780c41a

Please sign in to comment.