bugfix: group policy needs a name for init

This commit is contained in:
Dominik Richter 2015-10-26 16:40:21 +01:00
parent 6dc0a3b638
commit 1613add894

View file

@ -18,6 +18,10 @@ end
class GroupPolicy < Inspec.resource(1)
name 'group_policy'
def initialize(name)
@name = name
end
def get_registry_value(entry)
keys = entry['registry_information'][0]
cmd = "(Get-Item 'Registry::#{keys['path']}').GetValue('#{keys['key']}')"