summaryrefslogtreecommitdiffstats
path: root/testapi/testapi-client/testapiclient/cli/pods.py
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2018-05-07 14:03:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-05-07 14:03:22 +0000
commit22307af0125dc525e8946c0951c1f7fcff39e9d7 (patch)
tree14c26df3b0366a6cc68c7f760e703540de177e62 /testapi/testapi-client/testapiclient/cli/pods.py
parent3dee5b5a444e9a18987786b7016e8c0bb9d27434 (diff)
parentd7b3e7b890fa21a018900e459c8b85e7a8f68332 (diff)
Merge "Add get functionality for the import module"
Diffstat (limited to 'testapi/testapi-client/testapiclient/cli/pods.py')
-rw-r--r--testapi/testapi-client/testapiclient/cli/pods.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testapi/testapi-client/testapiclient/cli/pods.py b/testapi/testapi-client/testapiclient/cli/pods.py
index df63737..a7706f6 100644
--- a/testapi/testapi-client/testapiclient/cli/pods.py
+++ b/testapi/testapi-client/testapiclient/cli/pods.py
@@ -3,6 +3,7 @@ import json
from testapiclient.client import pods
from testapiclient.utils import command
from testapiclient.utils import urlparse
+from testapiclient.models import pods as pm
def pods_url():
@@ -61,8 +62,10 @@ class PodCreate(command.ShowOne):
parser.add_argument('pod',
type=json.loads,
help='Pod create request format :\n'
- '\'{"role": "", "name": "", "details": "", '
- '"mode": ""}\',\n role should be either '
+ '\'{}\''.format(json.dumps(
+ pm.PodCreateRequest().__dict__
+ )) +
+ '\n role should be either '
'"community-ci" or "production-ci", and '
'mode should be either "metal" or "virtual.')
return parser