Skip to content

Commit

Permalink
Merge pull request #268 from microsoft/users/mduppre/bug_fix
Browse files Browse the repository at this point in the history
Several bug fixes
  • Loading branch information
mduppre authored Sep 27, 2024
2 parents 71c6ebc + 3c99cc9 commit 1809ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/compute/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type OperatingSystemBootstrapEngine string
const (
CloudInit OperatingSystemBootstrapEngine = "CloudInit"
WindowsAnswerFiles OperatingSystemBootstrapEngine = "WindowsAnswerFiles"
Hydrated OperatingSystemBootstrapEngine = "Hydrated"
)

type VMType string
Expand Down
2 changes: 2 additions & 0 deletions services/compute/virtualmachine/virtualmachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,8 @@ func (c *client) getVirtualMachineOSProfile(o *wssdcloudcompute.OperatingSystemC

osBootstrapEngine := compute.CloudInit
switch o.OsBootstrapEngine {
case wssdcommon.OperatingSystemBootstrapEngine_HYDRATED:
osBootstrapEngine = compute.Hydrated
case wssdcommon.OperatingSystemBootstrapEngine_WINDOWS_ANSWER_FILES:
osBootstrapEngine = compute.WindowsAnswerFiles
case wssdcommon.OperatingSystemBootstrapEngine_CLOUD_INIT:
Expand Down

0 comments on commit 1809ecf

Please sign in to comment.