Make pep8 more picky
[integration/test.git] / csit / libraries / ClusterStateLibrary.py
index 58240e084f04cae818dddbab284bf68e1d49bca7..ab5a643bb29d97a7ffb88f1ca612e5ef93cecd7d 100644 (file)
@@ -1,8 +1,3 @@
-__author__ = "Basheeruddin Ahmed"
-__copyright__ = "Copyright(c) 2014, Cisco Systems, Inc."
-__license__ = "New-style BSD"
-__email__ = "syedbahm@cisco.com"
-
 import SettingsLibrary
 from time import sleep
 import UtilLibrary
@@ -10,6 +5,12 @@ import json
 import sys
 
 
+__author__ = "Basheeruddin Ahmed"
+__copyright__ = "Copyright(c) 2014, Cisco Systems, Inc."
+__license__ = "New-style BSD"
+__email__ = "syedbahm@cisco.com"
+
+
 def getClusterRoles(shardName, numOfShards=3, numOfTries=3, sleepBetweenRetriesInSecs=3, port=8181, *ips):
     """Given a shardname (e.g. shard-inventory-config), number of shards and bunch of ips
 
@@ -59,7 +60,7 @@ def getClusterRoles(shardName, numOfShards=3, numOfTries=3, sleepBetweenRetriesI
     return dict
 
 
-def isRole(role,  shardName, ipAddress, numOfShards=3, numOfRetries=1, sleepFor=3, port=8181):
+def isRole(role, shardName, ipAddress, numOfShards=3, numOfRetries=1, sleepFor=3, port=8181):
     """Given a role (Leader, Follower, Candidate, or IsolatedLeader),
     shardname (e.g. shard-inventory-config), controller IP address,
     and number of shards on the controller,this function determines if the controller,