mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 12565 - no check for correctness of the options given during cloud-setup-database steps
status 12565: resolved fixed
This commit is contained in:
parent
6a38a9ae2c
commit
5dbe84e2ee
@ -508,6 +508,10 @@ for example:
|
|||||||
self.info("Mysql user password:", True)
|
self.info("Mysql user password:", True)
|
||||||
self.info("Mysql server ip:%s"%self.host, True)
|
self.info("Mysql server ip:%s"%self.host, True)
|
||||||
self.info("Mysql server port:%s"%self.port, True)
|
self.info("Mysql server port:%s"%self.port, True)
|
||||||
|
|
||||||
|
def validateParameters():
|
||||||
|
if self.encryptiontype != 'file' or self.encryptiontype != 'web':
|
||||||
|
self.errorAndExit('Wrong encryption type %s, --encrypt-type can only be "file" or "web'%self.encryptiontype)
|
||||||
|
|
||||||
#---------------------- option parsing and command line checks ------------------------
|
#---------------------- option parsing and command line checks ------------------------
|
||||||
usage = """%prog user:[password]@mysqlhost:[port] [--deploy-as=rootuser:[rootpassword]] [--auto=/path/to/server-setup.xml] [-e ENCRYPTIONTYPE] [-m MGMTSECRETKEY] [-k DBSECRETKEY] [--debug]
|
usage = """%prog user:[password]@mysqlhost:[port] [--deploy-as=rootuser:[rootpassword]] [--auto=/path/to/server-setup.xml] [-e ENCRYPTIONTYPE] [-m MGMTSECRETKEY] [-k DBSECRETKEY] [--debug]
|
||||||
@ -563,6 +567,7 @@ for example:
|
|||||||
(self.options, self.args) = self.parser.parse_args()
|
(self.options, self.args) = self.parser.parse_args()
|
||||||
parseCasualCredit()
|
parseCasualCredit()
|
||||||
parseOtherOptions()
|
parseOtherOptions()
|
||||||
|
validateParameters()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user