Skip to content

Commit

Permalink
Fix for issue 96
Browse files Browse the repository at this point in the history
- Added the {} to the json file to resolve issue #96
  • Loading branch information
JJ Asghar committed Sep 14, 2015
1 parent d52f5f1 commit 78ce107
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
* Re-written for the new test-kitchen underlying framework
* Windows and WinRM support
* Stole some code from PR [#80][] - from [@jmahowald][]
* Resolve for issue [#96][]

# 1.8.1 / 2015-07-22

Expand Down
4 changes: 2 additions & 2 deletions lib/kitchen/driver/openstack.rb
Expand Up @@ -322,14 +322,14 @@ def add_ohai_hint(state)
if bourne_shell?
info 'Adding OpenStack hint for ohai'
mkdir_cmd = "sudo mkdir -p #{hints_path}"
touch_cmd = "sudo touch #{hints_path}/openstack.json"
touch_cmd = "sudo cat '{}' >> #{hints_path}/openstack.json"
instance.transport.connection(state).execute(
"#{mkdir_cmd} && #{touch_cmd}"
)
elsif windows_os?
info 'Adding OpenStack hint for ohai'
mkdir_cmd = "mkdir #{hints_path}"
touch_cmd = "'' > #{hints_path}\\openstack.json"
touch_cmd = "'{}' > #{hints_path}\\openstack.json"
instance.transport.connection(state).execute(
"#{mkdir_cmd} && #{touch_cmd}"
)
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/driver/openstack_version.rb
Expand Up @@ -21,6 +21,6 @@ module Kitchen
#
# @author Jonathan Hartman <j@p4nt5.com>
module Driver
OPENSTACK_VERSION = '2.0.0.dev.1'
OPENSTACK_VERSION = '2.0.0.dev.2'
end
end

0 comments on commit 78ce107

Please sign in to comment.