[CLOUDSTACK-268] Add quotes to input

This commit is contained in:
Hugo Trippaers 2012-10-05 23:58:35 +02:00
parent f3a9a835d3
commit f6ab8b4344

View File

@ -184,7 +184,7 @@ for example:
def processEncryptionStuff(self): def processEncryptionStuff(self):
def encrypt(input): 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') return runCmd(cmd).strip('\n')
def saveMgmtServerSecretKey(): def saveMgmtServerSecretKey():