Skip to content

Commit

Permalink
Merge branch 'sbe_fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
ananace committed Dec 15, 2017
2 parents 946164c + 5d71a1e commit bfbb7af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v0.0.3 (*unreleased*)

- Fix association of VMs by MAC address (case issue)
- Fix over-eager secure boot setting access on unpersisted VMs

## v0.0.2 2017-08-30

Expand Down
9 changes: 8 additions & 1 deletion app/models/concerns/fog_extensions/hyperv/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ def interfaces_attributes=(_attributes); end

def volumes_attributes=(_attributes); end

def secure_boot_enabled=(_); end
def secure_boot_enabled=(enabled)
@secure_boot = enabled
return unless persisted?

firmware.secure_boot = enabled ? :On : :Off
end

def secure_boot_enabled
return false if generation == 1
return @secure_boot unless persisted?

firmware.secure_boot == :On
end

Expand Down

0 comments on commit bfbb7af

Please sign in to comment.