[CLOUDSTACK-268] Add quotes to input

This commit is contained in:
Hugo Trippaers 2012-10-06 00:02:59 +02:00
parent d5b86d8149
commit f78aa41341
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ for example:
def processEncryptionStuff(self):
def encrypt(input):
cmd = ['java','-classpath',self.encryptionJarPath,'org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI', 'encrypt.sh', 'input=%s'%input, 'password=%s'%self.mgmtsecretkey,'verbose=false']
cmd = ['java','-classpath',self.encryptionJarPath,'org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI', 'encrypt.sh', 'input=\'%s\''%input, 'password=%s'%self.mgmtsecretkey,'verbose=false']
return runCmd(cmd).strip('\n')
def saveMgmtServerSecretKey():