incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1304694 - /incubator/tashi/trunk/src/tashi/client/tashi-client.py
Date Sat, 24 Mar 2012 01:15:46 GMT
Author: stroucki
Date: Sat Mar 24 01:15:46 2012
New Revision: 1304694

URL: http://svn.apache.org/viewvc?rev=1304694&view=rev
Log:
tashi-client: Allow grace period for previous behaviour of setting default network by naming
it "default"

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=1304694&r1=1304693&r2=1304694&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/client/tashi-client.py (original)
+++ incubator/tashi/trunk/src/tashi/client/tashi-client.py Sat Mar 24 01:15:46 2012
@@ -82,6 +82,13 @@ def getDefaultNetwork():
 	for network in networks:
 		if (getattr(networks[network], "default", False) is True):
 			networkId = network
+			break
+
+		# Naming the network "default" is deprecated, and
+		# this functionality will be removed soon
+		if (networks[network].name == "default"):
+			networkId = network
+			break
 	return networkId
 
 def randomNetwork():



Mime
View raw message