summaryrefslogtreecommitdiff
path: root/openstackclient/api/__init__.py
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-05-07 14:54:44 +0800
committerTang Chen <chen.tang@easystack.cn>2016-05-07 14:54:44 +0800
commit809239ca1e404c8077dd2499eafc8d12bd21c4cd (patch)
tree74866853c66466504b2795ecc9989ab785df05b5 /openstackclient/api/__init__.py
parent2244915b506b7342e3e2ce6b0b3e88a38d13c390 (diff)
downloadpython-openstackclient-809239ca1e404c8077dd2499eafc8d12bd21c4cd.tar.gz
Map server power state num to meanful string
In _prep_server_detail(), power_state is not formatted by _format_servers_list_power_state(). So when executing "server show" or "server create", the power state is represented by number. This patch map the numbers to meanful strings. This patch also adds power_state attribute to FakeServer, and improves unit tests for this attribute. Change-Id: I2ec674327de4e5133b8712ba6bb53fa5ce55e3f4
Diffstat (limited to 'openstackclient/api/__init__.py')
0 files changed, 0 insertions, 0 deletions