summaryrefslogtreecommitdiff
path: root/openstackclient/api/utils.py
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2015-12-15 11:40:23 +0800
committerTang Chen <chen.tang@easystack.cn>2016-02-02 13:58:43 +0800
commita83c1f0a4244d6c422a68cf5bf2bbaa3e4617b78 (patch)
treef498e3510ab17be8717900e6afc6c66342ce05b4 /openstackclient/api/utils.py
parentceb17e11a9ca0a2dc6c6d72466ad2c7b31a29878 (diff)
downloadpython-openstackclient-a83c1f0a4244d6c422a68cf5bf2bbaa3e4617b78.tar.gz
Network: Abstract get_body() out to be a private helper.
get_body() is needed in each network files to construct a dict to pass to sdk proxy. And it is also used by several functions in each file. So define it as a file level private helper function. The unified prototype should be: def _get_attrs(client_manager, parsed_args): 1. The name, in sdk, the parameter passed to proxy is named "attrs". And it is a private method. So let's call it _get_attrs(). 2. The parameters, besides parsed_args, when we deal with project and project_domain, we have to make use of identity_client. So let's pass in the client manager. Change-Id: Ib044ebd4ddedbcd805f46334a7fe99e4ebb5b249
Diffstat (limited to 'openstackclient/api/utils.py')
0 files changed, 0 insertions, 0 deletions