mirror of https://github.com/apache/jclouds.git
no warning needed if it's admin or domain_admin rather than normal user
This commit is contained in:
parent
95b220f26f
commit
29cd4efab3
|
@ -26,7 +26,6 @@ import javax.annotation.Resource;
|
|||
import javax.inject.Inject;
|
||||
|
||||
import org.jclouds.cloudstack.CloudStackClient;
|
||||
import org.jclouds.cloudstack.domain.Account;
|
||||
import org.jclouds.cloudstack.domain.User;
|
||||
import org.jclouds.cloudstack.predicates.UserPredicates;
|
||||
import org.jclouds.logging.Logger;
|
||||
|
@ -66,9 +65,6 @@ public class GetCurrentUser implements Supplier<User> {
|
|||
users));
|
||||
}
|
||||
|
||||
if (currentUser.getAccountType() != Account.Type.USER) {
|
||||
logger.warn("Expecting an user account: %s", currentUser);
|
||||
}
|
||||
return currentUser;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue