Summary: Fix logic error

Should if "if the username is not cloud AND developer is not true, then
report an error"
This commit is contained in:
Hugo Trippaers 2013-01-14 16:16:19 +01:00
parent c6916ff4e0
commit 4764f98866
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ public class ConfigurationServerImpl implements ConfigurationServer {
String username = System.getProperty("user.name");
Boolean devel = Boolean.valueOf(_configDao.getValue("developer"));
if (!username.equalsIgnoreCase("cloud") || !devel) {
if (!username.equalsIgnoreCase("cloud") && !devel) {
s_logger.warn("Systemvm keypairs could not be set. Management server should be run as cloud user, or in development mode.");
return;
}