summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2015-02-09 13:57:57 +0100
committerTails developers <amnesia@boum.org>2015-02-09 13:57:57 +0100
commit08efaa45c866d5f0dbd73e42e34ad623deef2e45 (patch)
tree40a4bf91ce4ff62a3a4df6d84c34a0a6184bd783
parentffe42482aca1a714afe93b5f42f1f8d80c09fcca (diff)
Improve variable names.
The previous names, net and domain, were too easy to confuse with @net and @domain.
-rw-r--r--features/support/helpers/vm_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/features/support/helpers/vm_helper.rb b/features/support/helpers/vm_helper.rb
index 9169be4..b164673 100644
--- a/features/support/helpers/vm_helper.rb
+++ b/features/support/helpers/vm_helper.rb
@@ -20,9 +20,9 @@ class VMNet
# (e.g. aborted).
def clean_up
begin
- net = @virt.lookup_network_by_name(@net_name)
- net.destroy if net.active?
- net.undefine
+ old_net = @virt.lookup_network_by_name(@net_name)
+ old_net.destroy if old_net.active?
+ old_net.undefine
rescue
end
end
@@ -84,9 +84,9 @@ class VM
# (e.g. aborted).
def clean_up
begin
- domain = @virt.lookup_domain_by_name(@domain_name)
- domain.destroy if domain.active?
- domain.undefine
+ old_domain = @virt.lookup_domain_by_name(@domain_name)
+ old_domain.destroy if old_domain.active?
+ old_domain.undefine
rescue
end
end