Skip to content

Commit

Permalink
Corrected usage of the 'request' parameter in 'rf_raw_request.py'
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Raineri <[email protected]>
  • Loading branch information
mraineri committed Mar 10, 2022
1 parent 490e75a commit d5d3e0f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/rf_raw_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@

# Perform the requested operation
if args.method == "HEAD":
resp = redfish_obj.head( args.path )
resp = redfish_obj.head( args.request )
elif args.method == "POST":
resp = redfish_obj.post( args.path, body = body )
resp = redfish_obj.post( args.request, body = body )
elif args.method == "PATCH":
resp = redfish_obj.patch( args.path, body = body )
resp = redfish_obj.patch( args.request, body = body )
elif args.method == "PUT":
resp = redfish_obj.put( args.path, body = body )
resp = redfish_obj.put( args.request, body = body )
elif args.method == "DELETE":
resp = redfish_obj.head( args.path )
resp = redfish_obj.head( args.request )
else:
resp = redfish_obj.get( args.path )
resp = redfish_obj.get( args.request )

# Print HTTP status and headers
if args.verbose:
Expand Down

0 comments on commit d5d3e0f

Please sign in to comment.