[metadata] Force put call to Navigator to send json mimetype
@@ -399,7 +399,7 @@ class NavigatorApi(object):
"""
try:
data = json.dumps(metadata)
- return self._root.put('entities/%s' % entity_id, params=self.__params, data=data, allow_redirects=True, clear_cookies=True)
+ return self._root.put('entities/%s' % entity_id, params=self.__params, data=data, contenttype=_JSON_CONTENT_TYPE, allow_redirects=True, clear_cookies=True)
except RestException, e:
msg = 'Failed to update entity %s: %s' % (entity_id, str(e))
LOG.error(msg)
