Merge "Add attribute 'disabled' for service-list" into stable/pike

This commit is contained in:
Jenkins 2017-09-23 07:51:06 +00:00 committed by Gerrit Code Review
commit 133352d3bb
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ from wsme import types as wtypes
from magnum.api.controllers import base
from magnum.api.controllers.v1 import collection
from magnum.api.controllers.v1 import types
from magnum.api import expose
from magnum.api import servicegroup as svcgrp_api
from magnum.common import policy
@ -40,7 +41,7 @@ class MagnumService(base.APIBase):
report_count = wsme.wsattr(wtypes.IntegerType(minimum=0))
"""The number of times the heartbeat was reported """
# disabled = wsme.wsattr(wtypes.BoolType(default=False))
disabled = wsme.wsattr(types.boolean, default=False)
"""If the service is 'disabled' administratively """
disabled_reason = wtypes.StringType(min_length=0, max_length=255)