mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
Merge pull request #15 from chef/fix-osdetection
Fix specinfra OS detection
This commit is contained in:
commit
e72f8721fc
1 changed files with 5 additions and 1 deletions
|
@ -92,8 +92,12 @@ module Vulcano::Backends
|
|||
|
||||
def configure_shared_options
|
||||
Specinfra::Backend::Cmd.send(:include, Specinfra::Helper::Set)
|
||||
|
||||
# Force specinfra to disregard any locally detected backend and instead
|
||||
# retry backend detection.
|
||||
Specinfra::Properties.instance.properties({})
|
||||
|
||||
si = Specinfra.configuration
|
||||
si.os = nil
|
||||
if @conf['disable_sudo']
|
||||
si.disable_sudo = true
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue