diff options
author | rabi <ramishra@redhat.com> | 2017-05-09 14:39:36 +0530 |
---|---|---|
committer | rabi <ramishra@redhat.com> | 2017-05-09 14:55:41 +0530 |
commit | a625d3bb93a18193058a09cb7887e9cfa4ea9df0 (patch) | |
tree | 28c4f57e9ba1c7b7f225588922c84a9b31093dd1 /heatclient/v1/events.py | |
parent | 31160e2b844f7e3a5143da37c1909e49b396351c (diff) | |
download | python-heatclient-a625d3bb93a18193058a09cb7887e9cfa4ea9df0.tar.gz |
Don't encode path separators
Encoding the path separators results in urls refused by by apache
with 404 unless AllowEncodedSlashes is turned on, which is not
the default.
The existing encoding of path separators seems unnecessary.
Change-Id: I3b77aafc6104119503363e5db36b0379964daba5
Diffstat (limited to 'heatclient/v1/events.py')
-rw-r--r-- | heatclient/v1/events.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/heatclient/v1/events.py b/heatclient/v1/events.py index 2951712..fd5a571 100644 --- a/heatclient/v1/events.py +++ b/heatclient/v1/events.py @@ -63,8 +63,8 @@ class EventManager(stacks.StackChildManager): else: stack_id = self._resolve_stack_id(stack_id) url = '/stacks/%s/resources/%s/events' % ( - parse.quote(stack_id, ''), - parse.quote(encodeutils.safe_encode(resource_name), '')) + parse.quote(stack_id), + parse.quote(encodeutils.safe_encode(resource_name))) if params: # convert to a sorted dict for python3 predictible order params = collections.OrderedDict(sorted(params.items())) @@ -81,8 +81,8 @@ class EventManager(stacks.StackChildManager): """ stack_id = self._resolve_stack_id(stack_id) url_str = '/stacks/%s/resources/%s/events/%s' % ( - parse.quote(stack_id, ''), - parse.quote(encodeutils.safe_encode(resource_name), ''), + parse.quote(stack_id), + parse.quote(encodeutils.safe_encode(resource_name)), parse.quote(event_id, '')) resp = self.client.get(url_str) body = utils.get_response_body(resp) |