commit | c46ad1b1b8ded25caad0603a99baedad81262df2 | [log] [tgz] |
---|---|---|
author | Michael Stroucken <stroucki@apache.org> | Wed Jul 11 02:42:03 2012 +0000 |
committer | Michael Stroucken <stroucki@apache.org> | Wed Jul 11 02:42:03 2012 +0000 |
tree | 06de257c1376de4aba742d7b35da6ec8fe4b1eba | |
parent | c6da92d9e02cd9c9a931db30cce28605314b933f [diff] |
tashi-client: check for permissions when doing destroyMany or shutdownMany git-svn-id: https://svn.apache.org/repos/asf/incubator/tashi/trunk@1359996 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/tashi/client/tashi-client.py b/src/tashi/client/tashi-client.py index 4d633d4..f051015 100755 --- a/src/tashi/client/tashi-client.py +++ b/src/tashi/client/tashi-client.py
@@ -230,6 +230,9 @@ count = 0 for i in instances: if (i.name.startswith(basename + "-") and i.name[len(basename)+1].isdigit()): + # checking permissions here + checkIid(i.name) + if method == "shutdown": client.shutdownVm(i.id)