[CLOUDSTACK-268] Add quotes to input
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/f6ab8b43 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f6ab8b43 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f6ab8b43 Branch: refs/heads/javelin Commit: f6ab8b4344fa1cdce47091dc2d0baef906a5a8ed Parents: f3a9a83 Author: Hugo Trippaers <[email protected]> Authored: Fri Oct 5 23:58:35 2012 +0200 Committer: Hugo Trippaers <[email protected]> Committed: Sat Oct 6 00:00:59 2012 +0200 ---------------------------------------------------------------------- setup/bindir/cloud-setup-encryption.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f6ab8b43/setup/bindir/cloud-setup-encryption.in ---------------------------------------------------------------------- diff --git a/setup/bindir/cloud-setup-encryption.in b/setup/bindir/cloud-setup-encryption.in index f2de2ec..35584b3 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():
