Bug 12565 - no check for correctness of the options given during cloud-setup-database steps

fix a typo
This commit is contained in:
frank 2011-12-15 10:59:54 -08:00
parent 5dbe84e2ee
commit 436af31a01

View File

@ -510,7 +510,7 @@ for example:
self.info("Mysql server port:%s"%self.port, True) self.info("Mysql server port:%s"%self.port, True)
def validateParameters(): def validateParameters():
if self.encryptiontype != 'file' or self.encryptiontype != 'web': if self.encryptiontype != 'file' and self.encryptiontype != 'web':
self.errorAndExit('Wrong encryption type %s, --encrypt-type can only be "file" or "web'%self.encryptiontype) 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 ------------------------