You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bb...@apache.org on 2019/08/01 09:09:07 UTC

[mesos] 02/06: Prevented webui from displaying unset drain config field.

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

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

commit b8421accc31ce81e606832c42888985780b1b3bc
Author: Benjamin Bannier <bb...@apache.org>
AuthorDate: Wed Jul 31 13:46:26 2019 +0200

    Prevented webui from displaying unset drain config field.
    
    This field might not be present and displayed as NaN in that case. With
    this patch the field is unconditionally hidden.
    
    Review: https://reviews.apache.org/r/71181/
---
 src/webui/app/agents/agent.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/webui/app/agents/agent.html b/src/webui/app/agents/agent.html
index 25d233b..02c5462 100644
--- a/src/webui/app/agents/agent.html
+++ b/src/webui/app/agents/agent.html
@@ -61,8 +61,8 @@
         <dl class="inline clearfix">
           <dt>Mark gone:</dt>
           <dd>{{agent.drain_config.mark_gone}}</dd>
-          <dt>Max. grace period:</dt>
-          <dd>{{agent.drain_config.max_grace_period.nanoseconds / 1000000000}} seconds</dd>
+          <dt ng-if="agent.drain_config.max_grace_period.nanoseconds">Max. grace period:</dt>
+          <dd ng-if="agent.drain_config.max_grace_period.nanoseconds">{{agent.drain_config.max_grace_period.nanoseconds / 1000000000}} seconds</dd>
         </dl>
       </span>