From f6ab8b4344fa1cdce47091dc2d0baef906a5a8ed Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Fri, 5 Oct 2012 23:58:35 +0200 Subject: [PATCH] [CLOUDSTACK-268] Add quotes to input --- setup/bindir/cloud-setup-encryption.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/bindir/cloud-setup-encryption.in b/setup/bindir/cloud-setup-encryption.in index f2de2ec7b99..35584b30147 100755 --- a/setup/bindir/cloud-setup-encryption.in +++ b/setup/bindir/cloud-setup-encryption.in @@ -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():