There is a command
application = raw_input('Enter the application name you want to deploy\t\n')
connect('weblogic','weblogic','t3://host:port')
deploy(appName='application',
path='/home/application.war',
targets='MS1',
upload='true')
startApplication(appName='application')
In the above, application is a value entered by the user, and that value should be substituted in the commands deploy
and startApplication
of wlst
.
I tried using %s % value
and .format(value=value)
, but I couldn't substitute the value of application in the deploy command.
How do we do it ? Any Ideas ?
I am using python 2.3.4