def checkDeployStatus(filename):
success = false
for line in open(filename):
if "Deploying composite success" in line:
print '++++++++++++++++++++++++++++++Composite is Alright++++++++++++++++++++++'
success=true
if "error" in line:
success=false
if success is false:
print line
raise Exception("Deployment Failed")