diff --git a/setup/bindir/cloud-setup-databases.in b/setup/bindir/cloud-setup-databases.in index b673bd12f42..e24d8b7ae52 100755 --- a/setup/bindir/cloud-setup-databases.in +++ b/setup/bindir/cloud-setup-databases.in @@ -412,7 +412,7 @@ for full help self.info("Mysql server port:%s"%self.port, True) 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) #---------------------- option parsing and command line checks ------------------------