mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
[CLOUDSTACK-268] Add quotes to input
This commit is contained in:
parent
f3a9a835d3
commit
f6ab8b4344
@ -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():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user