This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit ecd1f18e1fde4496bb34ffe62ef04279e0ce7862
Author: Benjamin Mahler <bmah...@apache.org>
AuthorDate: Thu Feb 1 18:55:18 2018 -0800

    Implemented master::Call validation for UPDATE_QUOTA.
    
    Note that this function does not currently validate the nested
    messages, so this adheres to this for consistency.
    
    Review: https://reviews.apache.org/r/65782
---
 src/master/validation.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/master/validation.cpp b/src/master/validation.cpp
index 5dd6086..5768ac8 100644
--- a/src/master/validation.cpp
+++ b/src/master/validation.cpp
@@ -242,7 +242,10 @@ Option<Error> validate(const mesos::master::Call& call)
       return None();
 
     case mesos::master::Call::UPDATE_QUOTA:
-      return Error("Not implemented");
+      if (!call.has_update_quota()) {
+        return Error("Expecting 'update_quota' to be present");
+      }
+      return None();
 
     // TODO(bmahler): Add this to a deprecated call section
     // at the bottom once deprecated by `UPDATE_QUOTA`.

Reply via email to