[Solved] python IndentationError: expected an indented block [closed]


You have no indentation in your Python code!

def datasource(cluster,user,password,url,env,jdbc_driver,timeOut,maxConn,minConn,reapTime,unusdTimeout,agedTimeout):
    #Declare global variables 
    global    AdminConfig 
    global    AdminControl

Fixing this, there will be others. The next one to fix is:

if len(Serverid) == 0:
    print "Cluster doesnot exists "    
else:    
    print "Cluster exist:"+ cluster

and so on.

1

solved python IndentationError: expected an indented block [closed]