diff options
author | Ritesh Chikatwar <rchikatw@redhat.com> | 2020-05-11 18:20:48 +0530 |
---|---|---|
committer | Amar Tumballi <amar@kadalu.io> | 2020-06-02 10:39:42 +0000 |
commit | 8972bf7fd15fb2780db1022c06daa2f88ad63d46 (patch) | |
tree | 80ab76caa01d848b7f733df879014d443a4dc860 /xlators/Makefile.am | |
parent | c9e1b58efab4391ec4ee81c33f07f4a403a1edfa (diff) |
events: fix python3 compatibility As there is no "unicode" in py3 so removing it.
Problem: vdsm-client command failing below traceback
[root@dhcp35-179 ~]# cat <<EOF | vdsm-client --gluster-enabled -f - GlusterEvent webhookUpdate
{
"url": "https://mail.google.com/mail/u/1/#inbox",
"bearerToken": "ritesh"
}
EOF
vdsm-client: Command GlusterEvent.webhookUpdate with args
{'url': 'https://mail.google.com/mail/u/1/#inbox', 'bearerToken': 'ritesh'} failed:
(code=4752, message=Failed to update webhook: rc=1 out=()
err=b'Traceback (most recent call last): File "/sbin/gluster-eventsapi", line 673,
in <module> runcli()
File "/usr/lib/python3.6/site-packages/gluster/cliutils/cliutils.py", line 232,
in runcli cls.run(args)\n
File "/sbin/gluster-eventsapi", line 357,
in run
isinstance(data[args.url], unicode):NameError: name \'unicode\' is not defined')
Solution:
In py3 str can hold unicode string.
Change-Id: I3dc59df8b812f236380d2d57cfcf8e3aba91e582
Fixes: #1226
Signed-off-by: Ritesh Chikatwar <rchikatw@redhat.com>
Diffstat (limited to 'xlators/Makefile.am')
0 files changed, 0 insertions, 0 deletions