mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
bugfix: group policy needs a name for init
This commit is contained in:
parent
6dc0a3b638
commit
1613add894
1 changed files with 4 additions and 0 deletions
|
@ -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']}')"
|
||||
|
|
Loading…
Reference in a new issue