diff --git a/CHANGELOG.md b/CHANGELOG.md index 8445f4d..f57d73a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # CHANGELOG for cookbook-openstack-object-storage This file is used to list changes made in each version of cookbook-openstack-object-storage. +## 9.0.3 +* Bugfix run_command exitstatus + ## 9.0.2 * Fix package action to allow updates diff --git a/metadata.rb b/metadata.rb index 6f3b089..e27abf6 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer 'ATT, Inc.' license 'Apache 2.0' description 'Installs and configures Openstack Swift' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '9.0.2' +version '9.0.3' recipe 'openstack-object-storage::account-server', 'Installs the swift account server' recipe 'openstack-object-storage::client', 'Install the switch client' diff --git a/providers/disk.rb b/providers/disk.rb index b14756c..58c2ee8 100644 --- a/providers/disk.rb +++ b/providers/disk.rb @@ -243,12 +243,12 @@ action :ensure_exists do case params[:type] when 'xfs' - unless Mixlib::ShellOut.new("xfs_admin -l #{device}").run_command.status + unless Mixlib::ShellOut.new("xfs_admin -l #{device}").run_command.exitstatus Mixlib::ShellOut.new("mkfs.xfs -f -i size=512 #{device}").run_command update = true end when 'ext4' - unless Mixlib::ShellOut.new("tune2fs -l #{device} | grep \"Filesystem volume name:\" | awk \'{print $4}\' | grep -v \"\"").run_command.status + unless Mixlib::ShellOut.new("tune2fs -l #{device} | grep \"Filesystem volume name:\" | awk \'{print $4}\' | grep -v \"\"").run_command.exitstatus Mixlib::ShellOut.new("mkfs.ext4 #{device}").run_command update = true end