summaryrefslogtreecommitdiffstats
path: root/tests/snapshot.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snapshot.rc')
-rwxr-xr-xtests/snapshot.rc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index 5dc2e904a..20bddcf0f 100755
--- a/tests/snapshot.rc
+++ b/tests/snapshot.rc
@@ -171,8 +171,9 @@ function _remove_vhd() {
# Utility Functions
########################################################
function snapshot_exists() {
- local snapname=$1
- $CLI snapshot list | egrep -q "^$snapname\$"
+ local volname=$1
+ local snapname=$2
+ $CLI snapshot list $volname | egrep -q "^$snapname\$"
return $?
}