Skip to content

Commit

Permalink
Possible fix for #8
Browse files Browse the repository at this point in the history
  • Loading branch information
ananace committed Nov 28, 2017
1 parent 188f380 commit cf0330f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/models/concerns/fog_extensions/hyperv/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@ def interfaces_attributes=(_attributes); end

def volumes_attributes=(_attributes); end

def secure_boot_enabled=(_); end
def secure_boot_enabled=(enabled)
@secure_boot = enabled
firmware.secure_boot = enabled ? :On : :Off if persisted?
end

def secure_boot_enabled
return false if generation == 1
firmware.secure_boot == :On
@secure_boot
firmware.secure_boot == :On if persisted?
end

def reset
Expand Down

0 comments on commit cf0330f

Please sign in to comment.