Skip to content

Commit

Permalink
Use Ruby 1.8 hash syntax
Browse files Browse the repository at this point in the history
Changed a single hash to use 1.8 syntax to continue 1.8 support (at
least for the time being).
  • Loading branch information
J.R. Garcia committed Nov 6, 2015
1 parent 67e1b13 commit 8f5f3f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/fog/vsphere/requests/compute/vm_take_snapshot.rb
Expand Up @@ -7,10 +7,10 @@ def vm_take_snapshot(options = {})
raise ArgumentError, "name is a required parameter" unless options.key? 'name'
vm = get_vm_ref(options['instance_uuid'])
task = vm.CreateSnapshot_Task(
name: options['name'],
description: options['description'] || '',
memory: options['memory'] || true,
quiesce: options['quiesce'] || false
:name => options['name'],
:description => options['description'] || '',
:memory => options['memory'] || true,
:quiesce => options['quiesce'] || false
)

task.wait_for_completion
Expand Down

0 comments on commit 8f5f3f5

Please sign in to comment.