summaryrefslogtreecommitdiff
path: root/heatclient/common/utils.py
diff options
context:
space:
mode:
authorTetyana Lashchova <tlashchova@mirantis.com>2014-10-27 17:58:47 +0200
committerTetyana Lashchova <tlashchova@mirantis.com>2014-10-28 17:28:54 +0200
commite346f5dd3e39269e882bc6886933476dce946d86 (patch)
tree9f93660b201f1a065a0abfb703c0a2919065679b /heatclient/common/utils.py
parent0cdb56139f983121771f8a6510cf34593aeb9a7e (diff)
downloadpython-heatclient-e346f5dd3e39269e882bc6886933476dce946d86.tar.gz
Fix shell tests for Python 3.4
Partial-Bug: #1384511 Change-Id: I7485184a84ec850c4cd695118f18b55e298f5124
Diffstat (limited to 'heatclient/common/utils.py')
-rw-r--r--heatclient/common/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/heatclient/common/utils.py b/heatclient/common/utils.py
index a86593a..06df897 100644
--- a/heatclient/common/utils.py
+++ b/heatclient/common/utils.py
@@ -15,6 +15,7 @@
from __future__ import print_function
import prettytable
+from six.moves.urllib import parse
import sys
import textwrap
import uuid
@@ -147,3 +148,8 @@ def format_output(output, format='yaml'):
except KeyError:
raise exc.HTTPUnsupported("The format(%s) is unsupported."
% output_format)
+
+
+def parse_query_url(url):
+ base_url, query_params = url.split('?')
+ return base_url, parse.parse_qs(query_params)