Merge "Remove useless deprecation warning for node-update maintenance"

This commit is contained in:
Jenkins 2014-11-28 18:38:04 +00:00 committed by Gerrit Code Review
commit 721fa7701e
1 changed files with 0 additions and 6 deletions

View File

@ -31,7 +31,6 @@ from ironic.api.controllers.v1 import types
from ironic.api.controllers.v1 import utils as api_utils
from ironic.common import exception
from ironic.common.i18n import _
from ironic.common.i18n import _LW
from ironic.common import states as ir_states
from ironic.common import utils
from ironic import objects
@ -893,11 +892,6 @@ class NodesController(rest.RestController):
if rpc_node[field] != patch_val:
rpc_node[field] = patch_val
if field == 'maintenance':
LOG.warning(_LW('Setting maintenance via node update is '
'deprecated. The /v1/nodes/<uuid>/maintenance '
'endpoint should be used instead.'))
# NOTE(deva): we calculate the rpc topic here in case node.driver
# has changed, so that update is sent to the
# new conductor, not the old one which may fail to