X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fviews%2Focloud_route.py;h=6b6a3fc36388d80b89464ad68177d48c6730935a;hb=9ee90ffa2414326c26fd10edc59bf315204254e2;hp=6aa6b2eff9ce3635f34d98b76c242d4e0576627d;hpb=1a9dcb5b8f598ee348f23eafecc2d92ef09c8122;p=pti%2Fo2.git diff --git a/o2ims/views/ocloud_route.py b/o2ims/views/ocloud_route.py index 6aa6b2e..6b6a3fc 100644 --- a/o2ims/views/ocloud_route.py +++ b/o2ims/views/ocloud_route.py @@ -168,8 +168,8 @@ class DeploymentManagersListRouter(Resource): @api_ims_inventory_v1.route("/deploymentManagers/") @api_ims_inventory_v1.param('deploymentManagerID', 'ID of the deployment manager') -@api_ims_inventory_v1.param('profile', 'DMS profile', - location='args') +@api_ims_inventory_v1.param('profile', 'DMS profile: value supports "sol018"', + _in='query') @api_ims_inventory_v1.response(404, 'Deployment manager not found') class DeploymentManagerGetRouter(Resource): @@ -181,8 +181,11 @@ class DeploymentManagerGetRouter(Resource): parser = reqparse.RequestParser() parser.add_argument('profile', location='args') args = parser.parse_args() + profile = ( + args.profile if args.profile is not None and args.profile != '' + else 'default') result = ocloud_view.deployment_manager_one( - deploymentManagerID, bus.uow, args.profile) + deploymentManagerID, bus.uow, profile) if result is not None: return result api_ims_inventory_v1.abort(