Update hab exporter to use inspec in path over calling to hab sup

Signed-off-by: Elliott Davis <edavis@chef.io>
This commit is contained in:
Elliott Davis 2017-05-09 20:09:33 -05:00
parent 1cecf4f9f0
commit 31645968e2
2 changed files with 1 additions and 2 deletions

View file

@ -14,7 +14,6 @@ pkg_deps=(
core/libxslt
core/ruby
core/net-tools
core/hab
)
pkg_build_deps=(
core/bundler

View file

@ -346,7 +346,7 @@ mkdir -p {{pkg.svc_var_path}}/inspec_results
while true; do
echo "Executing InSpec for ${PROFILE_IDENT}"
hab pkg exec chef/inspec inspec exec {{pkg.path}}/dist --format=json > ${RESULTS_FILE} 2>${ERROR_FILE}
inspec exec {{pkg.path}}/dist --format=json > ${RESULTS_FILE} 2>${ERROR_FILE}
if [ $? -eq 0 ]; then
echo "InSpec run completed successfully."