You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by st...@apache.org on 2012/07/11 02:42:04 UTC

svn commit: r1359996 - /incubator/tashi/trunk/src/tashi/client/tashi-client.py

Author: stroucki
Date: Wed Jul 11 02:42:03 2012
New Revision: 1359996

URL: http://svn.apache.org/viewvc?rev=1359996&view=rev
Log:
tashi-client: check for permissions when doing destroyMany or shutdownMany

Modified:
    incubator/tashi/trunk/src/tashi/client/tashi-client.py

Modified: incubator/tashi/trunk/src/tashi/client/tashi-client.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/client/tashi-client.py?rev=1359996&r1=1359995&r2=1359996&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/trunk/src/tashi/client/tashi-client.py Wed Jul 11 02:42:03 2012
@@ -230,6 +230,9 @@ def __shutdownOrDestroyMany(method, base
 	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)