Skip to content

Commit

Permalink
match package name
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Mason <[email protected]>
  • Loading branch information
mikemrm committed Aug 11, 2021
1 parent dfd9b99 commit 0d7fb58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions installers/custom_ipxe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func init() {
job.RegisterInstaller("ipxe", ipxeScript)
job.RegisterInstaller("custom_ipxe", ipxeScript)
job.RegisterSlug("custom_ipxe", ipxeScript)
}

Expand All @@ -24,7 +24,7 @@ func ipxeScript(j job.Job, s *ipxe.Script) {
var cfg *packet.InstallerData
var err error

if j.OperatingSystem().Installer == "ipxe" {
if j.OperatingSystem().Installer == "custom_ipxe" {
cfg = j.OperatingSystem().InstallerData
if cfg == nil {
s.Echo("Installer data not provided")
Expand Down
2 changes: 1 addition & 1 deletion installers/custom_ipxe/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestIpxeScript(t *testing.T) {
mockJob := job.NewMock(t, "test.slug", "test.facility")
script := ipxe.NewScript()

mockJob.SetOSInstaller("ipxe")
mockJob.SetOSInstaller("custom_ipxe")
mockJob.SetOSInstallerData(tc.installerData)

ipxeScript(mockJob.Job(), script)
Expand Down

0 comments on commit 0d7fb58

Please sign in to comment.