Log output of heat-keystone-setup-domain

For debugging reasons output of the script should be logged (and I'm
very sorry that I didn't realize it in the original patch).

Change-Id: I7799021b51039bffd7082c4e587fe49b8424f5d0
This commit is contained in:
Martin Mágr 2015-03-18 17:07:27 +01:00
parent 89ca576fa6
commit 8c09567b62
2 changed files with 4 additions and 2 deletions

View File

@ -50,9 +50,10 @@ class heat::keystone::domain (
]
exec { 'heat_domain_create':
path => '/usr/bin',
command => 'heat-keystone-setup-domain &>/dev/null',
command => 'heat-keystone-setup-domain',
environment => $cmd_evn,
require => Package['heat-common'],
logoutput => 'on_failure'
}
heat_domain_id_setter { 'heat_domain_id':

View File

@ -33,9 +33,10 @@ describe 'heat::keystone::domain' do
it 'should exec helper script' do
is_expected.to contain_exec('heat_domain_create').with(
:command => 'heat-keystone-setup-domain &>/dev/null',
:command => 'heat-keystone-setup-domain',
:path => '/usr/bin',
:require => 'Package[heat-common]',
:logoutput => 'on_failure',
:environment => [
"OS_USERNAME=#{params[:keystone_admin]}",
"OS_PASSWORD=#{params[:keystone_password]}",