diff options
author | Taseer Ahmed <taseer94@gmail.com> | 2017-08-27 20:03:46 +0500 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-09-01 13:57:03 -0400 |
commit | 0468cfe6858e83d04078945d98a831fe92592243 (patch) | |
tree | 8da4d94e87a97129cc68260c6c1838c2439b99ff /docker/storperf-master/rest_server.py | |
parent | 21644ee3689be254791809c791a18fcce7495aa1 (diff) |
Support for different agent OS
JIRA: STORPERF-175
Change-Id: I64d13c77c18dd129a79dde3bf9a8bc996019bff5
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'docker/storperf-master/rest_server.py')
-rw-r--r-- | docker/storperf-master/rest_server.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docker/storperf-master/rest_server.py b/docker/storperf-master/rest_server.py index 6da2004..0634b8f 100644 --- a/docker/storperf-master/rest_server.py +++ b/docker/storperf-master/rest_server.py @@ -64,7 +64,9 @@ class ConfigurationRequestModel: 'agent_image': fields.String, 'public_network': fields.String, 'volume_size': fields.Integer, - 'availability_zone': fields.String + 'availability_zone': fields.String, + 'username': fields.String, + 'password': fields.String } @@ -137,6 +139,10 @@ class Configure(Resource): storperf.volume_size = request.json['volume_size'] if ('availability_zone' in request.json): storperf.availabilty_zone = request.json['availability_zone'] + if ('username' in request.json): + storperf.username = request.json['username'] + if ('password' in request.json): + storperf.password = request.json['password'] storperf.create_stack() if storperf.stack_id is None: |