Skip to content

Commit e927cff

Browse files
authored
Fixing --filter clause on disk name (#80)
Previously was only picking up disks with same name as instance
1 parent 8ea040c commit e927cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: gcloud-snapshot.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ getDeviceList()
181181
else
182182
# check if $FILTER_CLAUSE exists
183183
if [[ ! -z $FILTER_CLAUSE ]]; then
184-
filter="name:$1 AND ${FILTER_CLAUSE}"
184+
filter="users~instances/$1\$ AND ${FILTER_CLAUSE}"
185185
else
186-
filter="name:$1"
186+
filter="users~instances/$1\$"
187187
fi
188188
fi
189189

0 commit comments

Comments
 (0)