You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2012/10/06 00:32:45 UTC

[6/49] git commit: [CLOUDSTACK-268] Add quotes to input

[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/480104c8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/480104c8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/480104c8

Branch: refs/heads/maven-to-rpm
Commit: 480104c8989fe86c48ddc44f79f83ab8b3f70d88
Parents: 42f6a7a
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Fri Oct 5 23:58:35 2012 +0200
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Sat Oct 6 00:30:34 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/480104c8/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():