summaryrefslogtreecommitdiffstats
path: root/contrib/fuse-include
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2016-09-26 17:08:31 +0530
committerAravinda VK <avishwan@redhat.com>2016-10-19 23:10:44 -0700
commita482645865af56b8d34a17430649c3c646f3d450 (patch)
treed255e93eaeafd384d0ba2c0c03c2e0f37aa9442e /contrib/fuse-include
parent460016428cf27484c333227f534c2e2f73a37fb1 (diff)
eventsapi: Auto convert Boolean and Int attributes
Before publishing in JSON format, automatically convert the attribute to "bool" or "int" if configured. For example, instead of sending force="1", convert to bool and send as force=True { "event": "VOLUME_START", "name" : "gv1", "force": "1" } Convert to, { "event": "VOLUME_START", "name" : "gv1", "force": true } BUG: 1379328 Change-Id: Iabc51fd61abc267a7c8dcf0aeac6b3c722d89649 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/15574 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Prashanth Pai <ppai@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'contrib/fuse-include')
0 files changed, 0 insertions, 0 deletions