appname="Yourappname"
isapppresent=AdminConfig.getid("Deployment:"+appname+"/")
if len(isapppresent) > 0:
print "the application %s is present" % appname
else:
print "the application %s is not present" % appname
isapppresent=AdminConfig.getid("Deployment:"+appname+"/")
if len(isapppresent) > 0:
print "the application %s is present" % appname
else:
print "the application %s is not present" % appname
Hi, you missed a / :
ReplyDeletedminConfig.getid("/Deployment:"+appname+"/")