mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
use new volcano backend for security policy
This commit is contained in:
parent
08ad9704a7
commit
e9e24a6bd5
1 changed files with 3 additions and 3 deletions
|
@ -21,11 +21,11 @@ class SecurityPolicy < Vulcano.resource(1)
|
|||
# load security content
|
||||
def load
|
||||
# export the security policy
|
||||
@runner.run_command('secedit /export /cfg win_secpol.cfg')
|
||||
vulcano.run_command('secedit /export /cfg win_secpol.cfg')
|
||||
# store file content
|
||||
command_result ||= @runner.run_command('type win_secpol.cfg')
|
||||
command_result ||= vulcano.run_command('type win_secpol.cfg')
|
||||
# delete temp file
|
||||
@runner.run_command('del win_secpol.cfg')
|
||||
vulcano.run_command('del win_secpol.cfg')
|
||||
|
||||
@@exit_status = command_result.exit_status.to_i
|
||||
@@policy = command_result.stdout
|
||||
|
|
Loading…
Reference in a new issue