Skip to content

Commit

Permalink
voxpupuligh-393: Rename variable to make it clear
Browse files Browse the repository at this point in the history
We want the hostname string, not the host object.
  • Loading branch information
alexjfisher committed Feb 2, 2015
1 parent 7bf0efd commit 1937c65
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/beaker/hypervisor/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ def cleanup
end

#snapshotting depends on https://github.com/scalefactory/vagrant-multiprovider-snap
def take_snapshot(host,snapshot_name)
@logger.debug "Creating snapshot of #{host}"
vagrant_cmd("snap take #{host} --name=#{snapshot_name}")
def take_snapshot(hostname,snapshot_name)
@logger.debug "Creating snapshot of #{hostname}"
vagrant_cmd("snap take #{hostname} --name=#{snapshot_name}")
end

def restore_snapshot(host,snapshot_name)
@logger.debug "Restoring snapshot of #{host}"
vagrant_cmd("snap rollback #{host} --name=#{snapshot_name}")
def restore_snapshot(hostname,snapshot_name)
@logger.debug "Restoring snapshot of #{hostname}"
vagrant_cmd("snap rollback #{hostname} --name=#{snapshot_name}")
end

def vagrant_cmd(args)
Expand Down

0 comments on commit 1937c65

Please sign in to comment.